These projects are retired. The development has stopped and we don't provide support for them anymore.

Error handling

Name

Error handling -- suppression of potential javascript errors.

Synopsis

<SCRIPT LANGUAGE="JavaScript" SRC="scripts/rl_error.js"</SCRIPT>
                  

Requires

nothing

Functions

void unsupportedBrowser ( );

Description

Most browsers pop up annoying and cryptic dialog windows when javascript errors occur. When this file is loaded, this default behavior is overridden and nothing happens instead.

It also provides a function that is required for the browser detection feature (see Browser detection).

Details

Following is a detailed description of the elements listed in the synopsis.

Functions

unsupportedBrowser
     This function is called when the browser that interprets the current page isn't supported by RelativeLayers. Usually it will be overridden afterwards since this default implementation simply displays a dialog, notifying the user of the fact and closing the window when the dialog is dismissed.