Create a new object. Better use the
Create a new global PApp::ECMAScript object, storing it in the (exported) variable
$js, which should be shared between all modules for caching purposes. Consequently, this function should be called once in the request callback or in the global stylesheet.
Return a unique identifier. This is useful when generating function names or other identifiers.
Escape the given string as required and return it (
escape_string_sq will use single quotes to delimit the string,
escape_string_dq will use double quotes). Remember that many browsers do not like quoting, so use the right function to minimize impact.
Add the given code fragment to the HTML/HEAD/SCRIPT section.
Mark the given code fragment as to be added to the html head section. The same fragment will only be added once.
Return the code to be put in the head section.
Add code that is run when the given event occurs. Event should be something like "window.onclick" or "document.onload".
Return wether the browser supports CSS.
Return the string that should be used to set the visibility attribute to "hidden" or "visible".
Return the name of the event object (either window.event or event).
Return code that finds the style object with the given name and returns it.
Return the window x or y coordinate from the current event relative to the current page.
Return the (approximate) height and width of the scrollable area, i.e. the inner width and height of the window.
Create a new layer object (does not output anything).
Return the current object id (optionally setting it).
Return the current object content (optionally setting it).
escape_html() the code first and use
disable-output-escaping in your stylesheet to deliberatly create broken HTML on output.
Return an expression that evaluates to the style object used by the code.
howxy, but use the current mouse position as origin.
Return code to display the layer object.
Return code to hide the layer object.
Marc Lehmann <email@example.com> http://home.schmorp.de/