Support Request: Error on window.external.InitScriptInterface();

Description

The following code:


<html>
<head>
    	
		<script type="text/javascript">

		function testar() {
window.external.InitScriptInterface();

		
	}	   



	</script>

</head>
<body onload="testar()">
    
    
    

	
	<h1>hej</h1>
    
</body>
</html>


Generates these log posts

20 03f5 2015-02-23 16:57:11 +0100 [SiteKiosk] Script Error: URL: http://dev.jula.se/cit; ErrMsg: "Could not complete the operation due to error 8070000c."; Line: 7; Char: 1; Code: 0;
20 03f5 2015-02-23 16:57:13 +0100 [SiteKiosk] Script Error: URL: http://dev.jula.se/cit; ErrMsg: "Unspecified error."; Line: 7; Char: 1; Code: 0;

Why is it not working? We have other projects with more complicated code and window.external.InitScriptInterface() works without problems.

Answer: (3)

Re: Error on window.external.InitScriptInterface(); 2/23/2015 5:35 PM
Hello,

as stated on the startpage of the SiteKiosk Object Model documentation (http://www.provisio.com/helpconsole/SiteKiosk%20Object%20Model%20Help/en-US/default.htm?index.htm):

Note that the path of a file using SiteKiosk objects must be allowed in the
SiteKiosk configuration (Access/Security -> URL's With Script Permission)
if it is not a browser skin file.
Re: Error on window.external.InitScriptInterface(); 2/24/2015 9:09 AM
I have read this some many times, but thought if was in "Surfing Area" that it needed to have access.

I found the correct setting, and now it works perfectly!

I am so sorry that I took your time for no good reason...... Thank you!
Re: Error on window.external.InitScriptInterface(); 2/24/2015 9:16 AM
No need to be sorry and thanks for the feedback. The ticket will be closed.
My Account
Login
Language (Tickets):