OnDisconnect Event



 
Fires when the terminal has been disconnected from the server.


Syntax

    SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient").
    OnDisconnect = handler
    
Remarks
    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example displays an alert window when the terminal has been disconnected from the server.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteCafe = SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient");
    SiteCafe.OnDisconnect = OnDisconnect;
    function OnDisconnect()
    {
       alert("Disconnected from the server");
    }
    </SCRIPT>
    

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

Back to top