> I was combining the ajax form plugin with the ajax validation plugin, which 
> is why I need to call ajaxSubmit. I wrote up the details 
> here:http://haacked.com/archive/2008/11/21/combining-jquery-form-validatio...
>
> The workaround I did was simply to add a hidden input with the same name as 
> the form, but that feels haackish to me. Maybe there's some way I can tunnel 
> the button click from validate to ajaxSubmit. Thanks for any advice. :)


I haven't tried this, but you may be able to just mimic what ajaxForm
does.  Add a click handler to your submit elements like this:

$('#myForm :submit').click(function() {
    this.form.clk = this;
});

and then I think ajaxSubmit will find the submitting element
correctly.

Mike

Reply via email to