Hi Grant

Thanks for the feedback.  Now that you mention it, I think you are right 
about AJAX submitting all buttons.

I am curious to know how you get different buttons to submit to 
different actions though.  I have tried this, but my AJAX/Javascript 
skills are a bit on the rusty side and I couln't work out how to do it. 
  If you feel like sharing your code I would be very grateful.

Regards,
Langdon


Grant Cox wrote:
> Langdon - I found that our Ajax submits were submitting ALL buttons on
> the form, but perhaps that was to do with the form serialization it
> performed.
> 
> In either case, if you've can use Javascript then I think it is much
> better to submit to different actions if you want your form to do
> different things - it's more semantically correct and can avoid the
> flakiness of detecting which button was actually clicked.
> 
> 
> On Jun 22, 12:13 pm, Langdon Stevenson <[EMAIL PROTECTED]>
> wrote:
>> The only exception to this is with an Ajax request where the button
>> name/value returned will always be the last button in the form.  This
>> has caused me no end of trouble in the past ...
>>
>> Regards,
>> Langdon
>>
> 
> 
> > 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to