sdidomenico
Programmer
We have an application in which the Users will use the Keyboard rather than the Mouse. It is for data entry type stuff.
I'm having trouble with writing code to keep a form "Save" button (type="submit") in focus, so our Users can hit the Enter Key at any time during data entry, yet blur the "Save" button after they have hit Enter so they can't hit the Enter Key multiple times causing the form to be submitted more than once.
The pages have a set focus to the first input box. Since the "Save" button is not in focus, I cannot blur the button.
I have had some success with some of the pages, but there is one page where I cannot create a solution. It's a Name and Address input page.
I can't seem to come up with an event that determines that they are finished entering data on the form, therefore I can't trigger a function to set focus to the button and then blur it.
I have learned that a button type="submit" has some sort of focus, but not really a complete focus if you know what I mean.
Has anyone had to solve a problem such as this?
Is the onunload event safe to use for this?
Thanks in advance for your time,
Steve DiDomenico
Nashua, NH
I'm having trouble with writing code to keep a form "Save" button (type="submit") in focus, so our Users can hit the Enter Key at any time during data entry, yet blur the "Save" button after they have hit Enter so they can't hit the Enter Key multiple times causing the form to be submitted more than once.
The pages have a set focus to the first input box. Since the "Save" button is not in focus, I cannot blur the button.
I have had some success with some of the pages, but there is one page where I cannot create a solution. It's a Name and Address input page.
I can't seem to come up with an event that determines that they are finished entering data on the form, therefore I can't trigger a function to set focus to the button and then blur it.
I have learned that a button type="submit" has some sort of focus, but not really a complete focus if you know what I mean.
Has anyone had to solve a problem such as this?
Is the onunload event safe to use for this?
Thanks in advance for your time,
Steve DiDomenico
Nashua, NH