« Return to the main article
Thanks John. Glad you like it ;-)
Hmm, Netscape 6 does indeed seem to ignore the onsubmit event of the form. Wonder why when it works okay in version 4!?
The work around is to by-pass the onsubmit and do the validation straight from the button. Put the following in the button's onClick event:
if ( doSubmit( document.forms[0], true ) ) document.forms[0].submit();
As for the submission of empty check-boxes. Leave it with me and I'll see if I can address it in version 2.0....
Jake -CodeStore
Thanks John. Glad you like it ;-)
Hmm, Netscape 6 does indeed seem to ignore the onsubmit event of the form. Wonder why when it works okay in version 4!?
The work around is to by-pass the onsubmit and do the validation straight from the button. Put the following in the button's onClick event:
if ( doSubmit( document.forms[0], true ) ) document.forms[0].submit();
As for the submission of empty check-boxes. Leave it with me and I'll see if I can address it in version 2.0....
Jake -CodeStore