This page summarizes the objects and functions available to you in the Chrome Server scripting API. For full details of the templating API used to present the output of your scripts to the user, see the Chrome templating pages. For summaries of the capabilities of Chrome Server and how to get started see the Chrome Server introduction and getting started pages.
The Chrome Server lifecycle is fairly simple - each incoming request triggers a set of six operations the last of which is a call to a function called display(). The user can over-ride the contents of the display function or leave its default behaviour in place.
These are the standard objects that are available from the global namespace to all Chrome Server scripts.
Calls the display() function of the renderer object
Types: path: string
All these properties are of string type and can also be accessed with corresponding get methods:
Types: name: string
Types: name: string, value: string, type: string, text: string
Types: message: string
Types: name: string, key: string, value: string, number, boolean
Calling the reverse() method twice returns the original DatabaseKeyList instance, not a new one!
These are the standard functions that are available from the global namespace to all Chrome Server scripts.
Types: library: string, revision: number, content: string, salt: string
System libraries enhance the scripting environment with additional objects and functions. New libraries will in general be added to Chrome Server but not removed. Where new functionality obsoletes or breaks old functionality the older library will be supplmented by a new version - the old version will still be available for use by legacy scripts.
Adds the trim() prototype method to string
Installs the JSON object.
Types: object: object, text: string