# OnError Event Fires when an error occured. Syntax
    SiteCafe.Server.OnError = handler
Parameters
errorCode | Long value that contains the error code.
Remarks Possible error codes are: 1 : database initialization failed (possibly wrong username/password) 2 : database test failed (tables missing) 3 : connection to database lost The object that caused the event can be referenced in the event function using "this". Examples The following example displays an alert window when an error occured.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteCafe.Server.OnError = OnError;
    function OnError(errorCode)
    {
       alert("Error: " + errorCode);
    }
    </SCRIPT>
Applies to SiteKiosk v6.2 (and later versions). Back to top