added evalScripts test
[jquery.git] / src / ajax / ajax.js
index c860b63..e37632f 100644 (file)
@@ -23,6 +23,7 @@ jQuery.fn.extend({
         * Load HTML from a remote file and inject it into the DOM.
         *
         * Note: Avoid to use this to load scripts, instead use $.getScript.
+        * IE strips script tags when there aren't any other characters in front of it.
         *
         * @example $("#feeds").load("feeds.html");
         * @before <div id="feeds"></div>
@@ -714,6 +715,10 @@ jQuery.extend({
                        jQuery.handleError(s, xml, null, e);
                }
                
+               // firefox 1.5 doesn't fire statechange for sync requests
+               if(!s.async)
+                       onreadystatechange();
+               
                // return XMLHttpRequest to allow aborting the request etc.
                return xml2;
        },