Ticket ID: 21512
|
Creation Date: 3/27/2015 12:10 AM
|
Product: SiteKiosk Classic Windows
|
Attachment: -
|
TicketType: Support Request
|
Version: 8.8.1686
|
Language: English
|
Views: 27009
|
Last Modification Date: 4/27/2015 10:35 PM
|
Platform:
|
|
Level: Closed
|
|
|
Support Request: Object model works starting locally but not from web server
Hi, my problem is that I developed a code for opening a HTML dialog it works when I fixed the start page to a local html file, but when I put it in my web server the dialog doesn't open at all.
Here's de code:
<script>
window.external.InitScriptInterface();
</script>
<img src="http://guideway.surumbo.com/sitios/guideway/part-kiosk-1.png" onclick="load_mantemiento();">
<script>
var load_counter=0;
setInterval(function(){load_counter=0;},10000);
function load_mantemiento()
{
if(load_counter>4)
{
showdialog()
load_counter=0;
}
load_counter++;
}
function showdialog()
{
mydialog = SiteKiosk.SiteKioskUI.CreateHTMLDialog();
mydialog.Border = false;
mydialog.ScrollBars = true;
mydialog.Sysmenu = true;
mydialog.Title = true;
mydialog.URL = "file:///" + SiteKiosk.SiteKioskDirectory + "Html/mantenimiento.htm";
mydialog.Width = 800;
mydialog.Height = 600;
mydialog.ShowModal();
setInterval(function(){SiteKiosk.SiteKioskUI.CloseAllDialogs();},30000);
}
</script>
I looked at the URL permissions and added the domain as told in order for the object model to work, but I don't know what I'm missing here.