Thank you. I think this could be a nice solution. 1. All buttons get a event. On click I save the name of the button global 2. on submit I check the names and delete the name-attribute of the other button(s)
On 27 Jul., 04:31, "Steve Onnis" <[email protected]> wrote: > That said.....the value is ONLY sent if the submit button has a "name" > attribute. If it does not have a name the value won' get sent. > > _____ > > From: Fábio M. Costa [mailto:[email protected]] > Sent: Monday, 27 July 2009 11:23 AM > To: [email protected] > Subject: [Moo] Re: submit form with 2 submit-Buttons > > Yep the clicked button is sent, im sorry, i just tested it. > i thought it wasnt sent... but as said its hard to make an automated way to > send the clicked button (on a beautiful way). > Thanks Steve. > > -- > Fábio Miranda Costa > Solucione Sistemas > Front-End Engineerhttp://meiocodigo.com > > On Sun, Jul 26, 2009 at 9:59 PM, Steve Onnis <[email protected]> wrote: > > In the case of someone manually interacting with the form, yes only the > button that is clicked will be send with the form but that is not the case > here as you are automating the process and as you are just calling a > form.submit(), how do you know which one has been clicked? > > If you really want to not send them, maybe use links instead of buttons and > have a hidden form field that holds the value you want to send. With the > link you can populate the form field with the value you want and not have to > worry about the buttons. > > -----Original Message----- > From: daKmoR [mailto:[email protected]] > Sent: Monday, 27 July 2009 6:28 AM > To: MooTools Users > Subject: [Moo] Re: submit form with 2 submit-Buttons > > hmmm if someone uses <input type="submit"... /> the values shouldn't > be sent right? > or at least that's what I thought... > > I explained it in this > way...http://www.mooforum.net/help12/submit-button-value-not-sent-trough-re... > <http://www.mooforum.net/help12/submit-button-value-not-sent-trough-re... > h%0Atml-t1959.html#p6523> > tml-t1959.html#p6523 > > doesn't sound too bad... :p so what's the way to do it?
