Jordon Bedwell wrote in post #1084597: > 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 even if that's > not the case, if I ran into a site that prevented me from pressing > enter to submit a form (because I am still a tab, tab, enter person) I > would walk away from that site and probably blacklist it in my > personal DNS.
Hello, My problem is than I'm doing a excel style form, and some fields have remote calls (onchange) to calculate another fields. And the form has a submit button, so I user press enter the remote call (ajax call) is not finished (some times not initiated) when the form is submited and saved with bad calculated values. To solve it, I have to do two things: 1 - Prevent enter key (this forum issue) 2 - And,despite this, user can click on submit button faster than field onchange function is finished. This second issue i still don't know how to solve it What do you tink? Do you hace the pont 2 answer? thanks a lot and sorry for my bad english Albert -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.