[Rails] Re: How can I prevent ENTER from submitting form?

2013-12-12 Thread Ryan Johnson
Thanks for that Adam, helped me a lot. On Saturday, January 10, 2009 1:10:15 AM UTC+10, Adam Massive wrote: Ok ok, stop.. just stop... you're all making it too complicated. [shakes head] Let's go over things... You want a button that submits normally but want to try and stop the enter

[Rails] Re: How can I prevent ENTER from submitting form?

2012-11-17 Thread Albert Català
I don't know my english but my javascript is very newbie, too much newbie ¿ Is not this, the same or similar, that disable the sumbmit button at the begining of onchange event and activate it at the end?...something like: %= f.text_field :amount, onchange=disable_submit(); +

[Rails] Re: How can I prevent ENTER from submitting form?

2012-11-15 Thread Albert Català
Easy and clean, thanks you -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to

Re: [Rails] Re: How can I prevent ENTER from submitting form?

2012-11-15 Thread Jordon Bedwell
On Thu, Nov 15, 2012 at 10:23 AM, Albert Català li...@ruby-forum.com wrote: Easy and clean, thanks you If you want/need to prevent enter from submitting a form, you are doing it wrong and you could be be alienating some disabled people who do not use a mouse and rely on their keyboard. I know

[Rails] Re: How can I prevent ENTER from submitting form?

2009-02-24 Thread Mr Soi xam
The simplest way is pass this code to your form :D input type=text style=display:none -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to

[Rails] Re: How can I prevent ENTER from submitting form?

2009-01-09 Thread Adam Massive
Ok ok, stop.. just stop... you're all making it too complicated. [shakes head] Let's go over things... You want a button that submits normally but want to try and stop the enter key submitting it. To do this, you're going to need to understand the relationship between the ENTER key, the