On the presumption that you're "submitting" from a button's click observer, you can use Event#element() to determine which element was clicked. Also, rather than using <input type="submit" .../> i typically use <input type="button" .../> to prevent the form from trying to unload the page as a form submission. -joe t.
On Jan 25, 5:32 pm, Matt <mattal...@gmail.com> wrote: > Is there any way of knowing which submit button was pressed from the > post passed by Form.request()? I'm just getting the first submit > button in the form, no matter which one I press. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---