[jQuery] Re: Submitting the submit input value

2008-11-22 Thread Phil Haack
Alsup [EMAIL PROTECTED] Sent: Friday, November 21, 2008 3:35 PM To: jQuery (English) Subject: [jQuery] Re: Submitting the submit input value If I call jQuery('form1').ajaxSubmit(); The value sent to the server is foo=bar and not foo=barbutton=click. Is there an easy way to get this to work

[jQuery] Re: Submitting the submit input value

2008-11-22 Thread Mike Alsup
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

[jQuery] Re: Submitting the submit input value

2008-11-21 Thread Mike Alsup
If I call jQuery('form1').ajaxSubmit(); The value sent to the server is foo=bar and not foo=barbutton=click. Is there an easy way to get this to work? It's needed by my backend server. Use ajaxForm instead of ajaxSubmit and you will get that behavior. Note that you call ajaxForm once to