<a href="javascript:getAllData();">get all data</a>
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
smartcard = SiteKiosk.Plugins("SiteCash").Devices("ACOS");
function getAllData()
{
smartcard.CustomerData.GetData(NameReady, 0);
smartcard.CustomerData.GetData(EmailAddressReady, 1);
smartcard.CustomerData.GetData(POPServerReady, 2);
smartcard.CustomerData.GetData(POPPasswordReady, 3);
smartcard.CustomerData.GetData(FreeDataReady, 4);
smartcard.CustomerData.GetData(StartpageReady, 5);
smartcard.CustomerData.GetData(CurrencyReady, 6);
}
function NameReady(id, index, data)
{
alert("Name: " + data);
}
function EmailAddressReady(id, index, data)
{
alert("Email address: " + data);
}
function POPServerReady(id, index, data)
{
alert("POP server: " + data);
}
function POPPasswordReady(id, index, data)
{
alert("POP password: " + data);
}
function FreeDataReady(id, index, data)
{
alert("Free data: " + data);
}
function StartpageReady(id, index, data)
{
alert("Startpage: " + data);
}
function CurrencyReady(id, index, data)
{
alert("Currency: " + data);
}
</SCRIPT>
|