OnUserDataReady Event

Fires when a card has been read after insertion.


    SiteKiosk.Plugins("SiteCash").Devices("ACOS").OnUserDataReady = handler
    id Long value that contains the question ID.
    index Long value that contains the index number of the read data.
    data String that contains the read data.
    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.
    The following example shows all available user data in an alert window when a card has been inserted.

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

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

Back to top