CustomerData Object
The CustomerData object provides information about the owner of the card.
Members Table
The following table lists the members provided by the CustomerData object.
|
Methods |
Description |
GetData |
Reads user information from the smartcard. |
SetData |
Writes user information to the smartcard. |
|
Remarks
This object is available through the object ACOS.
Use the CustomerData object to set or receive information about the SmartCard owner.
Note that the path of a file using SiteKiosk objects must be allowed in the
SiteKiosk configuration (Security -> Access -> URL's With Script Permission)
if it is not a browser skin file.
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