[jQuery] bug: IE requires at least one character from .load
(Do we have a bug tracking mechanism? I just want to be sure we're not
loosing track of things as we're starting to repeat bug reports and
work-around threads lately. Not seeing one, and pre-Trac, I propose we
at least include "bug:" or "workaround:" or "fix:" in the subjects.)
Passing back a single <script> block from the server-side in response to
a load() with nothing else works in FF, not in IE. In IE you need to
pass back a single character before the <script> block.
The examples below are simply indications of the problems.
Response to .load() -- does not work in IE:
"<script>alert("done")</script>"
Response to .load() -- does work in IE:
"- <script>alert("done")</script>"
In addition I'd suggest separating the <script> identifying code into a
separate routine as it's used in .update and .load:
objElement.html(strHTML).find("script").each(function(){
try {
$.eval( this.text || this.textContent || this.innerHTML );
} catch(e) { }
});
~ ~ Dave
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/