> 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 );
> });


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MooTools Users" 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/mootools-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to