ranosb
08-17-2005, 11:46 PM
Im using IE's encode for my .js files.
<script language="JScript.Encode" src="java/main.js"></script>
Im also calling another .js file within this main.js file shown below;
var newScript = document.createElement( "script" );
newScript.src = "country.js";
newScript.type = "text/javascript";
document.getElementsByTagName("head")[0].appendChild( newScript );
Question is: How can I edit the above call to country.js so if I encode country.js it will work when encoded?
Country.js works as is in this call, but not if encoded since encoded files need JScript.Encode added to the script call...
<script language="JScript.Encode" src="java/main.js"></script>
Im also calling another .js file within this main.js file shown below;
var newScript = document.createElement( "script" );
newScript.src = "country.js";
newScript.type = "text/javascript";
document.getElementsByTagName("head")[0].appendChild( newScript );
Question is: How can I edit the above call to country.js so if I encode country.js it will work when encoded?
Country.js works as is in this call, but not if encoded since encoded files need JScript.Encode added to the script call...