X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=form%2Fform.js;h=f391fcf1751727893a0a992563db46063fe2b6e2;hb=b2d15586bd7cf3f620793b116b4377b8cfc38c8a;hp=5194d6fa2c5d6c90e0debf05afc457a74f6c1827;hpb=6bf8667410f10dc505b81261a568e6a42e1ce809;p=jquery.git diff --git a/form/form.js b/form/form.js index 5194d6f..f391fcf 100644 --- a/form/form.js +++ b/form/form.js @@ -127,6 +127,19 @@ $.fn.ajaxForm = function(target, post_cb, pre_cb) { }); }; +/* + +$.ajax({ + type: "POST", + url: "foo.cgi", + data: $.param( $("form").formdata() ), + success: function(){}, + error: function(){}, + complete: function(){} +}); + + */ + /** * A simple wrapper function that sits around the .serialize() * method, allowing you to easily extract the data stored within