Ticket ID: 16854
|
Creation Date: 28/07/2011 19:09
|
Product: SiteKiosk Classic Windows
|
Attachment: -
|
TicketType: Support Request
|
Version: 7.8.328
|
Language: English
|
Views: 30395
|
Last Modification Date: 29/08/2011 10:07
|
Platform:
Windows XP Home
|
|
Level: Closed
|
IE: 8.0 |
|
Bug Status: Not Fixed
|
User account: Administrator
|
Bug Frequency: About once an hour
|
|
Support Request: connection dropping between card reader and kiosk
Reproduction
this is running on Window 7 home
The javascript code where the function call is from index.php in the kiosk directory:
<!-- Site Kiosk -->
<script type="text/javascript">
window.external.InitScriptInterface(document);
creditcard = SiteKiosk.Plugins("SiteCash").Devices("CreditCard");
creditcard.OnCardSwiped = OnCardSwiped; function setFocus() { document.getElementById("target").focus();
}
function OnCardSwiped(ccardinfo) {
document.getnumber.name_first.value = ccardinfo.FirstName;
document.getnumber.name_last.value = ccardinfo.LastName;
//alert(ccardinfo);
}
</script>
From what I understand, the
"window.external.InitScriptInterface(document)" call is what enables the SiteKiosk functions to be run from within a browser. But apparently the browser is not recognizing it after the first or second scan after reinitializing the kiosk as Sherry has done.
Screen shot is attached.