OnCreateUser Event



 
Fires when a user has been created.


Syntax

    SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient").
    OnCreateUser = handler
    
Parameters
    errorCode Long value that contains the error code.
    userIndex Long value that contains the user index number.
Remarks
    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example displays the user index number when a user has been created.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteCafe = SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient");
    SiteCafe.OnCreateUser = OnCreateUser;
    function OnCreateUser(errorCode, userIndex)
    {
       alert("New user: " + userIndex);
    }
    </SCRIPT>
    

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

Back to top