OnTextMessage Event



 
Fires when a message has been received.


Syntax

    SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient").
    Chat.OnTextMessage = handler
    
Parameters
    fromSessionIndex Long value that contains the source session index.
    toSessionIndex Long value that contains the destination session index.
    message String that contains the message.
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 message has been received.

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

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

Back to top