Nope...  jQuery $.load() eventually makes a call to
self.html(res.responseText) before attempting .evalScripts() but the problem
with IE is that jQuery attr: for innerHTML will not accept script tags when
attempting to assign it to the value of res.responseText. This following
does not work in IE ( at least IE 6.0 that I am testing with)

var script = "<script language=\"JavaScript\"
type=\"text/JavaScript\">alert('im really running');<\/script>";
var oVDiv =document.getElementById("oDiv1");
oVDiv["innerHTML"] = script;

$.getScript  (http://jquery.com/api/) passes "script" in the fourth
parameter for AJAX get: and I think it would more than likely work for what
Surge is trying to do.



malsup wrote:
> 
>> Internet Explorer wont execute dynamic code in that manner.
> 
> Sure it will, with the help of jQuery.  $().load has logic to find and
> eval script in the returned text.
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/.load%28%29-not-executing-javascript-code-in-IE-tf2883329.html#a8080676
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to