Support Anfrage: javascritp

Reproduktion

Windows 7 pro 64 bits is not in your list of system.
When in fullscreen, if the page contain a javascript that is executed, the page immediatly quits the full screen mode and the bars or scrooling bars appear. In the welcome page, fullscreen, I have a script to check the internet connection, as soon as the function is called, the welcome page quits the welcome page. I know that the script works fine, because it works on other pages that are not in full screen. In fact, with any javascript, I have tried "alert("OK")", as soon a javascript is called, the corresponding screen quit the full screen mode.

Beschreibung

window.external.InitScriptInterface();
var server = "www.fairmont.com";
SiteKiosk.Network.CheckInternetConnectionComplete = OnCheckInternetConnectionComplete;
SiteKiosk.Network.CheckInternetConnection(server);
function OnCheckInternetConnectionComplete(ab_Status, al_ErrorCode)
{
if (ab_Status){
window.open("IHC.swf","_self")
}else{
}
}

Antwort: (6)

Re: javascritp 14.10.2011 15:48
Windows 7 Professional 64-bit is a supported OS. Windows 7 is supported as of SiteKiosk 7.1. http://www.provisio.com/en-US/SiteKiosk/SystemRequirements.aspx

There is no known conflict with using JavaScript and SiteKiosk full screen mode. What version of SiteKiosk are you using? I tested this on Windows 7 64-bit with a javascript alert and could not replicate the issue. Is your configuration set to "permanent" full screen mode? Do you see anything in your log file? You might instead try using the full screen browser skin.
Re: javascript 14.10.2011 16:08
If I select permanent fullscreen mode, I partly correct the situation but the ads functianality disappears. The arrow buttons and the keyboard still appears at the bottom. I use SiteKiosk 7.8.332 the latest.
Re: javascritp 14.10.2011 16:52
Please provide more detailed information. How did you have the browser in full screen mode before? How do you mean it partly corrects the situation? Does SiteKiosk stay in fullscreen mode when you test with your JavaScript? As the majority of sites use JavaScript in some way, are you able to replicate this on other websites that use JavaScript? The following page has a JavaScript test button. Are you able to replicate your issue by clicking the "display date" button while in SiteKiosk? http://www.w3schools.com/js/
Re: javascritp 17.10.2011 22:53
Effectively, the problem seems to be in the flash file running in a html page. If I put the script in the html, I can run in full screen mode. Now the difficulty is to have the script polling every 10 or 15 seconds to check if the internet connection is good or not. I finally got the setinterval() method to repeat the script in the body every 10 seconds and to select the flash file to be loaded. I have put also a copy of the script in the header so that it runs immediatly on load.

In the opening page(Internet on page) I have:
<head>
<script>
window.external.InitScriptInterface();
var server = "www.faimont.com";
SiteKiosk.Network.CheckInternetConnectionComplete = OnCheckInternetConnectionComplete;
SiteKiosk.Network.CheckInternetConnection(server);
function OnCheckInternetConnectionComplete(ab_Status, al_ErrorCode)
{
if (ab_Status){ /*if internet is ok, don't do nothing*/
}else{
window.open("IHCoff.html","_self") /*open the no internet page*/
}
}
</script>

</head>
<body bgcolor="#000000">
<script>
var int=self.setInterval("clock()",10000);
function clock()
{
window.external.InitScriptInterface();
var server = "www.faimont.com";
SiteKiosk.Network.CheckInternetConnectionComplete = OnCheckInternetConnectionComplete;
SiteKiosk.Network.CheckInternetConnection(server);
function OnCheckInternetConnectionComplete(ab_Status, al_ErrorCode)
{
if (ab_Status){ /*don't do nothing, internet is on, kept polling every 10 seconds to see if Internet is still on*/
}else{
window.open("IHCoff.html","_self") /*call the no internet page*/
}
}
}
</script>

In the other page (internet off) :
<head>
<script>
window.external.InitScriptInterface();
var server = "www.faimont.com";
SiteKiosk.Network.CheckInternetConnectionComplete = OnCheckInternetConnectionComplete;
SiteKiosk.Network.CheckInternetConnection(server);
function OnCheckInternetConnectionComplete(ab_Status, al_ErrorCode)
{
if (ab_Status){
window.open("IHC.html","_self") /*open the internet on page*/
}else{
/*if internet is still off, don't do nothing*/
}
}
</script>

</head>
<body bgcolor="#000000">
<script>
var int=self.setInterval("clock()",10000);
function clock()
{
window.external.InitScriptInterface();
var server = "www.faimont.com";
SiteKiosk.Network.CheckInternetConnectionComplete = OnCheckInternetConnectionComplete;
SiteKiosk.Network.CheckInternetConnection(server);
function OnCheckInternetConnectionComplete(ab_Status, al_ErrorCode)
{
if (ab_Status){
window.open("IHC.html","_self") /*open the internet on page*/
}else{
/*if internet is still off, don't do nothing, kept polling every 10 seconds to see if it is back*/
}
}
}
</script>

It is sad the flash files with javascript does not act accordingly in Sitekiosk. In regular application in IE there is no problem with flash file containing javascript, even if fullscreen mode.

This is only a workaround no a real solution.
Re: javascritp 18.10.2011 16:23
In order for us to better understand your requirements, please submit a detailed proposal stating what exactly you need done according to the look and functionality required to sales-us(at)provisio.com. After the developers look at the proposal we will contact you in regard to time frame and pricing for the cost of the requested customizations.
Pages (2): [1] 2 Next »
Mein Konto
Anmelden
Sprache (Tickets):