Problems with onSubmit
by Paul.Anderson(at)atos.co.uk
|
| Date: |
Wed, 1 Mar 2000 08:37:14 -0000 |
| To: |
hwg-style(at)hwg.org |
| |
todo: View
Thread,
Original
|
|
I know this isn't stricly speaking a style problem, but has anyone else had
problems with the onSubmit event handler within the <FORM> tag?
According to the Developers Guide to JavaScript 1.1 the syntax is:
<FORM METHOD="POST" ACTION="/cgi-bin/mailscript" onSubmit="return
doCheck(this)" where 'doCheck' is the JavaScript function to validate the
form.
According to Microsoft's knowledge base the syntax is :
<form method="POST" action="/cgi-bin/mail" onSubmit="return(docheck());">
I've tried both, and several variations in between, and nothing seems to
trigger the JavaScript, it just goes ahead and submits the form.
Is anyone else having a problem with this, or has anyone got the onSubmit
handler working and can tell me how?
Thanks in advance,
Paul Anderson
Atos Sytems Analyst
paul.anderson(at)atos.co.uk <mailto:Paul.anderson(at)atos.co.uk>
tel 01706 89 1075
**********************************************************************
This message is confidential. Its contents do not constitute a
commitment by Atos except where provided for in a written agreement
between you and Atos. Any unauthorised disclosure, use, or
dissemination, either whole or partial, is prohibited.
If you are not the intended recipient of the message, please notify
the sender immediately.
**********************************************************************
HWG hwg-style mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.