GrazrScript Tutorial

How much of JavaScript is available?

The entire core JavaScript 1.5 language from Mozilla Corp. is available within a script block. This includes arrays, custom functions, and user defined objects. We will be producing more detailed language documentation at a later date, but for now you can use Mozilla's excellent introduction to the language. If the language feature is listed here, it will be available within a GrazrScript program. There are also hundreds of books available on JavaScript, if you are new to this language.

The best way to understand what is not available from JavaScript is to remember that the script block is run on our servers, not within your browser. This means that you do not have access to some browser based JavaScript features that you may be familiar with. Common browser controls such as form controls or access to a window object are not available. Think of JavaScript in this context as purely a scripting language, like Perl or Ruby. Although we have plans to include it, we have not yet implemented the Document Object Model (DOM) for outlines. This means that DOM methods, like "getElementById", are also currently unavailable.



Creating outline nodesGetting More Help