Friday, January 29, 2010

[jQuery] Re: AjaxSubmit - Form Plugin Serialize Submit Button Data

Hum sorry, it does not work correctly...

All submit fields are posted, impossible to know which one we click
on...

I'm working on it.

On 29 jan, 11:08, Adysone <adyso...@gmail.com> wrote:
> Hi,
>
> I found a way to do that, I was confronted at the same problem.
> Juste comment the line 556 in jquery.form.js :
> // (t == 'submit' || t == 'image') && el.form && el.form.clk != el ||
>
> It works for me.
>
> Enjoy ;-)
>
> PS : Excuse my English, I'm French.
>
> On 20 jan, 20:36, Jamie <jab...@mweb.co.za> wrote:
>
>
>
> > Hi
>
> > I have multiple submit buttons on a form. I haven't been able to
> > figure out how to get the  name parameters on the clicked submit
> > button serialized when using the ajaxSubmit method.
>
> >  It appears ajaxForm passes serializes the submit button info, but
> > ajaxSubmit does not. I need to handle each submit button click
> > differently while still serializing the submit button info.
>
> > Any idea on how to do this? Is there a way to handle an onclick event
> > on a submit button and use the ajaxSubmit function to send through the
> > clicked submit button's info?
>
> > Thanks in advance
>
> > Jamie

No comments: