Click to See Complete Forum and Search --> : IE Encode and calling .js files


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...

felgall
08-18-2005, 02:01 AM
Why not use code that works in modern (version 8) web browsers as well as ancient (version 6) browsers.

ranosb
08-18-2005, 02:55 AM
felgall,
Dont know what you mean sir...Do you have an example or something?