padolsey-archive / jquery.fn

A collection of jQuery plugins
http://james.padolsey.com
The Unlicense
1.1k stars 723 forks source link

Error with jQuery 1.6.4 #10

Open jensoppermann opened 12 years ago

jensoppermann commented 12 years ago

Got an error in jQuery.js

"a.isResolved is not a function"

With 1.4.2a everything is fine.

sekoyo commented 12 years ago

I have the same issue - any updates? (using jquery 1.7.1)

jensoppermann commented 12 years ago

No.

But i solved it for my part.

At the top of document i use a newer version of jQuery globally.

Later in the document i switch to the older version like this:

<script src="jquery.142a.js" type="text/javascript"></script>
<script src="jquery.xdomainajax.js" type="text/javascript"></script>
<script>
  //<![CDATA[
    $(document).ready(function() {
      $("#mycontainer").load("http://www.somedomain.de #somecontainer", function(response, status, xhr) {
      if (status == "success") {
         // do the kung fu
        }
      if (status == "error") {
        var msg = "Sorry but there was an error: ";
        $(".page_content").html(msg + xhr.status + " " + xhr.statusText);
      }
      });
    });
  //]]>
</script>

I hope this could work for you too.

nelsonic commented 12 years ago

June 2012 Update: Still not fixed in JQuery 1.7.2 :-( But works with v.1.4.2 http://code.jquery.com/jquery-1.4.2.min.js