Basic HTML version of Foils prepared 5 August 97

Foil 3 JavaScript Script Node - II

From VRML97 Scripting: JavaScript Nodes UC Web Applications Certificate -- July 24 1997. by Wojtek Furmanski and Hasan Ozdemir


The javascript: protocol allows the script to be placed inline as follows:
Script { url "javascript: function foo( ) { ... }" }
The url field may contain multiple URL's and thus reference a remote file or in-line code:
Script {
url [ "http://foo.com/myScript.js",
"javascript: function foo( ) { ... }" ] }
The file extension and MIME type for JavaScript source code is .js and application/x-javascript.



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Apr 5 1998