SiteKiosk Documentation
One Step Back

OnExecuteJavascript Event




Fires when the server caused the terminal to execute a Javascript.


Syntax

    SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient").
    OnExecuteJavascript = handler
    
Parameters
    filenameString that contains the filename.
    sendRetValBoolean value that indicates whether the script should send a return value to the server.
    scriptIDLong value that contains the script ID.
Remarks
    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example displays the filename when the server caused the terminal to execute a Javascript.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteCafe = SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient");
    SiteCafe.OnExecuteJavascript = OnExecuteJavascript;
    function OnExecuteJavascript(filename, sendRetVal, scriptID)
    {
       alert("File: " + filename);
    }
    </SCRIPT>
    

Applies to
    SiteKiosk v6.2 (and later versions).

Back to topVolver arriba

© 1997-2011 PROVISIO - Aventura, EEUU - Muenster, Alemania
Sitekiosk.es - Grupo24®, Madrid, España -