I am working with submit buttons and forms. A number of the <input>'s on my page have onblur events defined. In IE when the enter key is used to submit the form the submit event is getting fired before the onblur event. The onblur is doing data validations that should prevent the user from getting invalid data in the database. So when I have focus on the input, enter invalid data, and hit enter to submit the form the validation is done after the submit is started so I get an error message displayed, click ok, and the form is submitted.
I've tried a few things to get around this and the only thing that seems to work nicely in IE 5.5/6.0 and Netscape 6.1/6.2 is removing the onblur events and putting the validations in the onSubmit function.
Any ideas would be greatly appreciated.
Thanks,
I've tried a few things to get around this and the only thing that seems to work nicely in IE 5.5/6.0 and Netscape 6.1/6.2 is removing the onblur events and putting the validations in the onSubmit function.
Any ideas would be greatly appreciated.
Thanks,