Compare the expanded code returned by the server for the version that works
and the version that doesn't.  CFINPUT usese JavaScript and onClick() for
its input validation.  By using your code below, I think you essentially
overwrite the onClick() that CFINPUT generates.

Jim


----- Original Message -----
From: "Parker, Kevin" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, May 06, 2001 6:28 PM
Subject: FW: Field required doesn't work


> Problem solved but can someone tell me why this happens. I used this bit
of
> code I got off this list some time ago to stop multiple submits (multiple
> clicks on the submit button) of the form. It works fine but none of the
> CFINPUTs work. Once I removed it all was well???
>
>
>
> <INPUT TYPE="Button" NAME="Submit" VALUE="Submit" onClick="if(this.value
==
> 'Submit') this.form.submit(); this.value = 'Please Wait!';">
>
>
>
> ****
>
> Kevin Parker
> Web Services Manager
> WorkCover Corporation
>
> [EMAIL PROTECTED]
>
> www.workcover.com
>
> p: +61 8 82332548
> f: +61 8 82332000
> m: 0418 800 287
>
>
>
>
> -----Original Message-----
> From: Parker, Kevin
> Sent: Monday, 7 May 2001 9:50:AM
> To: CF Talk (E-mail)
> Subject: Field required doesn't work
>
>
> This is a real head scratcher so that means I've probably overlooked
> something simple. Thought if I left it for the weekend and had a look this
> morning I'd spot it but no luck.
>
> I have developed a form at
> http://www.e-safety.sa.gov.au/sw_abstracts/sw_paper_form.cfm and have a
> number of CFINPUTs with required = yes but when I hit the submit button I
> can submit a completely empty form????
>
>
>
>
> ****
>
> Kevin Parker
> Web Services Manager
> WorkCover Corporation
>
> [EMAIL PROTECTED]
>
> www.workcover.com
>
> p: +61 8 82332548
> f: +61 8 82332000
> m: 0418 800 287
>
>
>
>
>
>
****************************************************************************
> This e-mail is intended for the use of the addressee only. It may contain
> information that is protected by legislated confidentiality and/or is
> legally privileged. If you are not the intended recipient you are
prohibited
> from disseminating, distributing or copying this e-mail. Any opinion
> expressed in this e-mail may not necessarily be that of the WorkCover
> Corporation of South Australia. Although precautions have been taken, the
> sender cannot warrant that this e-mail or any files transmitted with it
are
> free of viruses or any other defect.
> If you have received this e-mail in error, please notify the sender
> immediately by return e-mail and destroy the original e-mail and any
copies.
>
****************************************************************************
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to