OnCustomMessage Event



 
Fires when a message has been received from the server.


Syntax

    SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient").
    OnCustomMessage = handler
    
Parameters
    messageID Long value that specifies the message ID.
    message String that specifies the message.
Remarks
    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example displays the message when it has been received.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteCafe = SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient");
    SiteCafe.OnCustomMessage = OnCustomMessage;
    function OnCustomMessage(messageID, message)
    {
       alert("Message: " + message);
    }
    </SCRIPT>
    

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

Back to top