Internet Explorer wont execute dynamic code in that manner. You have two options... (I like the second one better.) I tested through the second solution and it appears to work fine...
1> Dynamic script head tag creation // Thanks to http://www.bluishcoder.co.nz/2006/12/cross-domain-json-with-fjsc.html for the code $("head/script#jsonrequest*").remove(); var request = "testxml.htm"; var script = document.createElement("script"); script.setAttribute("type", "text/javascript"); script.setAttribute("src", request + '?noCacheIE=' + (new Date()).getTime()); script.setAttribute("charset", "UTF-8"); script.setAttribute("id", "jsonrequest" + scriptCounter); $("head").append(script); scriptCounter++; 2> Or the followng installScript method (http://nerd.newburyportion.com/2006/07/going-global) // Take out your script tag wrapper, then detect browser via jQuery browser object for IE then call installScript() // I like .get over .load $.get ( '/client/secure/filetree.php'+ '?noCacheIE=' + (new Date()).getTime(), function( rtnTxt){ installScript(rtnTxt); } ); function installScript( script ) { if (!script) return; // Internet Explorer has a funky execScript method that makes this easy if (window.execScript) window.execScript( script ); else window.setTimeout( script, 0 ); } Hope it helps Kevin Pirkl (ZombieBob at Intel) Surge Mitchell wrote: > > Here is a demo page that shows what is works and does not work: > http://remoteap.com/demo/secure.php.htm > > Run it in Firefox to see how it should work, it renders out the filetree, > when you click Refresh Files, it executes the MyReload() function which > will update the tree so that the files listed under Test Client are > updated, if it works all the image files will no longer be listed and the > tree will be collapsed. In IE it does not update the tree nor does the > tree collapse since the javascript code is ignored. > > > Surge Mitchell wrote: >> >> >> I'll set up a demo page tomorrow for people to look at, the page is >> currently behind a firewall. >> >> > > > > -- View this message in context: http://www.nabble.com/.load%28%29-not-executing-javascript-code-in-IE-tf2883329.html#a8067524 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
