SiteKiosk Documentation
One Step Back

OnTextMessage Event




Fires when a message has been received.


Syntax

    SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient").
    Chat.OnTextMessage = handler
    
Parameters
    fromSessionIndexLong value that contains the source session index.
    toSessionIndexLong value that contains the destination session index.
    messageString 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 topVolver arriba

© 1997-2011 PROVISIO - Aventura, EEUU - Muenster, Alemania
Sitekiosk.es - Grupo24®, Madrid, España -