Originally posted by james swan:
So unless there is a specific need for you to do form validation with onBlur/onFocus combination (or if you don't mind writing different versions of the code for different browsers (nasty), I would avoid it.
Hi and thanks for the suggestions. Sadly, our design document says that there MUST be item-by-item validation on each form, not just on form submit.
I have narrowed the problem down to the fact that in Netscape, tabbing out of a textbox places the cursor in the next form object before onBlur() of the previous fires and that is why I am getting an alert loop. (blank textboxB loses focus to display the alert for blank textboxA -- which in turn triggers an alert for blank textboxB which triggers alert for blank textboxA etc...)
In short, I still am at a loss as to how to do item by item validation in Netscape. onChange() avoids the alert loop, but it doesn't fire if the user simply tabs past the textbox without entering any data.
Anyone else have done this successfully?
Thanks in advance,