OnConnect Event



 
Fires when a computer has been connected.


Syntax

    SiteCafe.Server.Computers.OnConnect = handler
    
Parameters
    index Long value that contains the computer index.
Remarks
    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example displays the index when a computer has been connected.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteCafe.Server.Computers.OnConnect = OnConnect;
    function OnConnect(index)
    {
       alert("Computer: " + index);
    }
    </SCRIPT>
    

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

Back to top