SiteKiosk Documentation
One Step Back

OnUserDataReady Event




Fires when a card has been read after insertion.


Syntax

    SiteKiosk.Plugins("SiteCash").Devices("ACOS").OnUserDataReady = handler
    
Parameters
    idLong value that contains the question ID.
    indexLong value that contains the index number of the read data.
    dataString that contains the read data.
Remarks
    The object that caused the event can be referenced in the event function using "this".

    This event fires for each single data field that has been read.
Examples
    The following example shows all available user data in an alert window when a card has been inserted.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    smartcard = SiteKiosk.Plugins("SiteCash").Devices("ACOS");
    smartcard.OnUserDataReady = OnUserDataReady;
    function OnUserDataReady(id, index, data)
    {
       alert(id + " " + index + " " + data);
    }
    </SCRIPT>
    

Applies to
    SiteKiosk v5.0 (and later versions).

Back to topVolver arriba

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