Forum Moderators: open
for whatever reason (I'm not saying he can't explain things, nor thinking you're stupid) if you didn't understand him, he just said use JavaScript to check when the user presses Enter, and every time he does, set focused element to the next one.
I really don't see much of a point for this function though. Anyone who wants to navigate to the next object should just use the TAB key!
If they don't know that function exists, let them know!
Because a useful feature of tabbing is SHIFT-tabbing, which makes you move BACKWARDS in objects focus. You'd need to add even MORE scripting if you wanted to do this with Enter. Shift-enter is also a forced line break (without submitting), which may not really cause any problems, but something you should keep in mind.
[edited by: Xapti at 5:36 am (utc) on May 10, 2007]
Note that I'd be very concerned about disabling the normal Enter functionality. Spare a thought for those who rely upon screen-readers and who depend upon the standard things such as tabbing between fields and pressing enter or ctrl-enter to submit.
Capture the keyboard events, when you find an enter (code is 13), switch focus to your next box, and return false to prevent the form submitting.