Ticket ID: 21248
|
Creation Date: 12/30/2014 2:42 PM
|
Product: SiteKiosk Classic Windows
|
Attachment: -
|
TicketType: Support Request
|
Version: 8.9.2821
|
Language: English
|
Views: 41112
|
Last Modification Date: 1/27/2015 11:43 PM
|
Platform:
Windows
|
|
Level: Closed
|
IE: 11.0 |
|
Bug Status: Not Fixed
|
User account: Unknown
|
Bug Frequency: Unknown
|
|
Support Request: SiteCash plugin is not working .
Reproduction
Hi
I have installed sitekiosk on windows embedded system, And attached Bill reader and Coin Acceptor hardware and configured them through configuration manager and created one .skcgf file. I have added my .html file in html folder and provides all rights to support scripts through configuration manager .
But when i tried to run this code throws javascript error
<html>
<body>
<table border="0" bgcolor="#ebebeb" width="600" cellspacing="5"
cellpadding="5" style="font-family:verdana;font-size:8pt;"
align="center">
<tr><td bgcolor="f8f8f8">
The following example shows which plugins have been enabled
in the configuration.
</td></tr>
<tr><td style="font-family:verdana;font-size:8pt;">
<pre>
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
for (var i = 1; i <= SiteKiosk.Plugins.Count; ++i) {
if (SiteKiosk.Plugins.Item(i).Enabled)
pactstatus = "<b>Activated</b>";
else pactstatus = "Deactivated";
if (i != 1) document.writeln("");
document.write(SiteKiosk.Plugins.Item(i).Name +
": " + pactstatus);
}
function OnPullRequestCompleted(bool_success) {
if (bool_success) {
document.getElementById("result").innerHTML = "Thank you. The payment was successful.";
}
else {
document.getElementById("result").innerHTML = "Payment has not been made.";
}
}
</SCRIPT>
</pre>
</td></tr>
<tr>
<td>
Please click the button and pay the requested amount
<input type="button" value="Make your payment" onclick="SiteKiosk.Plugins('SiteCash').Script.Dispatch.StartPullRequest('Please make your payment! This service', 0.5, OnPullRequestCompleted, 30); ">
<br />
<span id="result"></span>
</td>
</tr>
</table>
</body>
</html>
I am getting error in line where onclick=SiteKiosk.Plugins('SiteCash') is written .
where ever i used this code in different example it throws same error . Please help on this issue.
Thanks