OnUserDataReady Event
Fires when a card has been read after insertion.
Syntax
SiteKiosk.Plugins("SiteCash").Devices("ACOS").OnUserDataReady = handler
|
Parameters
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. |
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 top