OnConnect Event



 
Fires when a connection to the server has been established.


Syntax

    SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient").
    OnConnect = 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 a connection to the server has been established.

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

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

Back to top