> I'm using the form plugin and want do to things with the
> form doing the ajax submit, after the submit has happened.
> Unlike the option "before:", "after:" doesn't seem to pass
> the jQuery object. Any way around this?
It's a little bit asymmetrical because ajaxForm depends on jQuery.ajax for
some of the work. The ajaxForm after function is the jQuery.ajax success
function, renamed. So it gets the xmlhttp data and a status code, that's it.
You should be able to use a closure to get what you want--untested:
var options = { ... };
$("form.severalForms").each(function(formElement){
$(this).ajaxForm($.extend(options, {
after: function(data, status) {
$(formElement).insertBefore("ajax complete");
}
});
});
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/