]> source.dussan.org Git - jquery.git/commitdiff
removed $.fn.changer by Marc's request and changed back the responseText in $.xml
authorGilles van den Hoven <gilles0181@gmail.com>
Fri, 9 Jun 2006 14:49:09 +0000 (14:49 +0000)
committerGilles van den Hoven <gilles0181@gmail.com>
Fri, 9 Jun 2006 14:49:09 +0000 (14:49 +0000)
ajax/ajax.js

index 98569e17a91bb66b31111a0db27e0ac2a53bafa6..f48f74c08c60c03af35083fac7d729d5fa3a374f 100644 (file)
@@ -120,18 +120,15 @@ $.fn.load = function(a,o,f) {
                t = "POST";
        }
        var self = this;
-       $.xml(t,a,o,function(h){
-               // Get HTTP data
-               h = $.httpData(h);
-
+       $.xml(t,a,o,function(res){
                // Assign it and execute all scripts
-               self.html(h).find("script").each(function(){
+               self.html(res.responseText).find("script").each(function(){
                        try { $.execute( this.text || this.textContent || this.innerHTML || ""); } catch(e){}
                });
 
                // Callback function
                if (f && f.constructor == Function)
-                       f(h);
+                       f(res.responseText);
        });
        return this;
 };
@@ -324,17 +321,3 @@ $.fn.putForm = function(target, pre_cb, post_cb, url, mth) {
 
        return this;
 }
-
-// ------------------------------------------------------
-
-$.fn.changer = function(form, target, pre_cb, post_cb) {
-       $(form).submit(function(e) {
-               e.preventDefault();
-               return false;
-       });
-       this.change(function(e) {
-               e.preventDefault();
-               $(form).getForm().putForm(target, pre_cb, post_cb);
-               return this;
-       });
-}
\ No newline at end of file