I just read this up in a JS book. The submit button has actually 2
events happening sequentially. The first one is an onClick and the
second one an onSubmit. Both can return false and stop the execution
of the action. If onClick returns false onSubmit will not be executed.
I guess you could control your flow of execution based on what area of
the page has the focus and only submit the form when you're really
done and switch focus to the next area of your page based on where you
are when the submit button is pressed.

On Jun 16, 4:20 pm, Brent Jameson <brentjame...@gmail.com> wrote:
> Hey all,
>
> I'm working on a rails app that will be accepting input from a wide
> array of brandless barcode scanners. Is there anyway of making the
> return key tab to the next field instead of submitting the form? I
> know this is more of a javascript thing, but I just can't get it
> solved.

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to