Support Request: Object model works starting locally but not from web server

Description

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.

Answer: (3)

Re: Object model works starting locally but not from web server 3/27/2015 4:32 PM
Where did you save the local file when you tested that? What URL did you enter under URLs with script permission for the local file if any?

What URL did you enter for the "URLs with script permission" setting for the server based file?
http://www.provisio.com/helpconsole/SiteKiosk%20Help/en-US/default.htm?access.htm#three

Also see information here under Remarks toward the bottom of the page:
http://www.provisio.com/helpconsole/SiteKiosk%20Object%20Model%20Help/en-US/default.htm?index.htm
Re: Object model works starting locally but not from web server 3/28/2015 9:01 PM
The local start page is set to c:/program files/sitekiosk/html/index.htm the script you see in the example code.

The web start page is set to http://kid.guideway.surumbo.com and in a part of the webpage there's the icon you see in example code that uses the object model.

In both cases I want to call the mantenimiento.htm thats also in the sitekiosk/html/

In case that the web page calls directly the local html file, it opens, but the functions I need don't work. Code next:


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Lang" content="en">
<meta name="author" content="">
<meta http-equiv="Reply-to" content="@.com">
<meta name="generator" content="PhpED 8.0">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="creation-date" content="09/06/2012">
<meta name="revisit-after" content="15 days">
<title>Untitled</title>
<link rel="stylesheet" type="text/css" href="my.css">
</head>
<body>
<script>
    window.external.InitScriptInterface();
</script>
<table style="font-family:arial;font-size:18pt;vertical-align: middle;border:2px solid #666666;" width=100% height=550>
	<tr>
		<td align=center bgcolor="#000000" style="color:#ffffff;font-weight:bold;">GUIDEWAY MAINTENANCE CONSOLE</td>
	</tr>
	<tr>
		<td align=center>
        <a href="http://mon.guideway.surumbo.com">Abrir el monitor de KIDs</a>
        </td>
	</tr>
	<tr>
		<td align=center>
        <a href="javascript:SiteKiosk.ExternalApps.RunElevated('C:/Program Files/FreshDevices/FreshDiagnose/fdiag.exe');">Open diagnose tool</a>
        </td>
	</tr>
	<tr>
		<td align=center>
        <a href="javascript:SiteKiosk.ExternalApps.RunElevated('C:/Program Files/TouchKit/Touchkit.exe');">Touch calibration</a>
        </td>
	</tr>
	<tr>
		<td align=center>
        <a href="javascript:SiteKiosk.ExternalApps.RunElevated('C:/GuideWay/ftprun.cmd');">Sincronize files</a>
        </td>
	</tr>
	<tr>
		<td align=center>
        <a href="http://www.huaweimobilewifi.com">Open Mifi report</a>
        </td>
	</tr>
	<tr>
		<td align=center>
        <a href="javascript:SiteKiosk.Restart();">Restart Sitekiosk</a>
        </td>
	</tr>
	<tr>
		<td align=center>
        <a href="javascript:SiteKiosk.RebootWindows();">Reboot machine</a>
        </td>
	</tr>
</table>

</body>
</html>




Also these functions work from the local configuration, but not from the webpage.

As I noted before, in the URL with write permissions I have ...
file://$(SiteKioskPath)\html\*
http://kid.guideway.surumbo.com
http://*.surumbo.com
file://c:\program files\sitekiosk\html\*

If it's of any help, our kiosk are for the BRT transport system of Bogotá / Colombia, run in maximazed windows without any navegation controls, and works only in one site that has all the information and query tools.

What we're dong is setting a console that can be worked from the web avoiding the need of logging out of Sitekiosk and enetring to windows administrator account in order to make the maintenance of the machine.
Re: Object model works starting locally but not from web server 3/30/2015 10:20 PM
The page works in the SiteKiosk browser when running from a server but does not work in the SiteKiosk browser when running locally. Is that right? Does the page work with the local files in IE outside of SiteKiosk?

What is the error you are seeing? Normally if it is something SiteKiosk is blocking, you will be notified of that unless you turned off those notifications.
My Account
Login
Language (Tickets):