AnsweredAssumed Answered

Web-Viewer with local html and external js

Question asked by sgerads on May 24, 2012

Hi,

 

I have a html code in the web viewer container. To display the html code I need to implement 3 javascript files. The js files have to be on a server.

 

My problem is now, that i can implement a js as:

<script type="text/javascript" src="http://IP/path/myfile.js"></script>

 

it workes perfectly on the IE, Firefox, Safari but as soon I try to use it in the Web Viewer - nothing happens.

 

Where is my mistake?

 

This is the code in the web viewer container (without the actual code):

 

"data:text/html," & "<!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Sample Code</title>

 

<script type="text/javascript" src="http://IP/path/myfile.js"></script>

<script type="text/javascript">

 

//here is a script running in my html file localy

 

</script>

</head>

<body>

<script src="http://IP/path/myfile1.js"></script>

<script src="http://IP/path/myfile2.js"></script>

</body>

</html>

"

Outcomes