I cannot fill innerHTML with script tags and succesfully return it in IE.
After hours of playing I see it as a prime cause .load() bug on IE6.
In jquery load() function there is:
self.html(res.responseText)
self.evalScripts()
In IE, innerHTML (aka .html()) will not retain the <script> from the
response. evalScripts which tries to .find('script') will not find
anything. And exactly that will be executed.
I've tried all combinations. See some mockup for testing
http://www.kotouc.net/work/JS/Ajax/load-with-script.htmlOnly safe way seems to be:
.load('simple-without-js.html');
.getScript('script-to-simple.html.js');
I have not played with .get yet but I guess it will be the same story.
_______________________________________________
jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/