Ticket ID: 21512
|
Erstellungsdatum: 27.03.2015 00:10
|
Produkt: SiteKiosk Classic Windows
|
Anhang: -
|
Tickettyp: Support Anfrage
|
Version: 8.8.1686
|
Sprache: Englisch
|
Aufrufe: 27008
|
Letzte Änderung: 27.04.2015 22:35
|
Plattform:
|
|
Level: Geschlossen
|
|
|
Support Anfrage: 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.