And even that it's a "click" event and it is going to grab ALL of the fields anyway so it doesn't really matter now does it
-----Original Message----- From: Ryan Florence [mailto:[email protected]] Sent: Tuesday, 28 July 2009 12:09 AM To: [email protected] Subject: [Moo] Re: submit form with 2 submit-Buttons > I usually don't use the submit event but the click > event That is bad usability. What happens when I hit "enter" inside of a text field? Ryan Florence http://ryanflorence.com/blog On Jul 27, 2009, at 3:41 AM, daKmoR wrote: > > does anyone actually read links that get posted? > > if you have a form I usually don't use the submit event but the click > event for the button or submit input... > with that I can easily check what button got hit... > > it's as simple as that: > $$('input[type=submit]').addEvent('click', function(e) { > e.stop(); > myRequest.send( $('myForm').toQueryString() + '&' + this.name + '=' > + this.value ); > });
