Support Anfrage: connection dropping between card reader and kiosk

Reproduktion

this is running on Window 7 home

Beschreibung

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.

Antwort: (3)

Re: connection dropping between card reader and kiosk 29.07.2011 10:08
Hello,

As SiteKiosk does not drop any connection to a card reader you should ask the manufacturer of the device. Maybe there is something about the initialization?

Regards,
Michael Olbrich
Re: connection dropping between card reader and kiosk 29.07.2011 17:06
I have spoke with the card reader company and they say the reader does not do anything that would cause this. In the code I have an error that might be causing this until this is looked into I don't think I can rule out the kiosk software.
Re: connection dropping between card reader and kiosk 01.08.2011 09:37
Hello,

From our side there is also no known issue where SiteKiosk would drop the connection to a card reader.

You should check the log files for script errors to figure out which part of your code has a problem.

General note:
When you use the OnCardSwipe Event in a web page it can only be used if the page with your code is opened in the SiteKiosk Browser at the time you want to use it.

Only if you like to use the SiteKiosk Object Model within FRAMES you have to use
window.external.InitScriptInterface(document)
instead of
window.external.InitScriptInterface().
http://www.provisio.com/en-US/Help/ObjectModel/index.html

You might also check this example script:
Parse credit card data to a webpage
http://www.provisio.com/en-US/Downloads/Default.aspx?GroupId=6#ID160

Regards,
Michael Olbrich
Mein Konto
Anmelden
Sprache (Tickets):