X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=sidebyside;f=form%2Fform.js;h=fb645bdbc0e5cf9dcbbfbcd18f4b43bfc0957727;hb=eced62567a992b4696617b555db76e4e755a26ae;hp=d1a7ba798f5570fb9b57fb0ad1118e5d7272080d;hpb=ce6af8e8894b14c7b2c41b64a097bc49acc73b19;p=jquery.git diff --git a/form/form.js b/form/form.js index d1a7ba7..fb645bd 100644 --- a/form/form.js +++ b/form/form.js @@ -37,7 +37,7 @@ * @param url form action override * @param mth form method override * @return "this" object - * @see ajaxForm(), serialize(), load(), $.xml() + * @see ajaxForm(), serialize(), load(), $.ajax() * @author Mark Constable (markc@renta.net) * @author G. vd Hoven, Mike Alsup, Sam Collett, John Resig */ @@ -52,12 +52,12 @@ $.fn.ajaxSubmit = function(target, post_cb, pre_cb, url, mth) { var mth = mth || f.method || 'POST'; if (target && target.constructor == Function) { - $.xml(mth, url, $.param(this.vars), target); + $.ajax(mth, url, $.param(this.vars), target); } else if (target && target.constructor == String) { $(target).load(url, this.vars, post_cb); } else { this.vars.push({name: 'evaljs', value: 1}); - $.xml(mth, url, $.param(this.vars), function(r) { + $.ajax(mth, url, $.param(this.vars), function(r) { eval(r.responseText); }); }