Here're you go 'gel:

<INPUT TYPE="Button" 
       VALUE="Change Quantities" 
onClick="if(this.value == 'Change Quantities') this.form.submit();
this.value = 'Please Wait.';">


Then if the user tries clicking again on the button nothing happens, it only
submits if the value of the button is Change Quantities.

hth,

larry

--
Larry C. Lyons
ColdFusion/Web Developer
Certified Advanced ColdFusion 5 Developer
EBStor.com
8870 Rixlew Lane, Suite 204
Manassas, Virginia 20109-3795
tel:   (703) 393-7930
fax:   (703) 393-2659
Web:   http://www.ebstor.com
       http://www.pacel.com
email: [EMAIL PROTECTED]
Chaos, panic, and disorder - my work here is done.
--

> -----Original Message-----
> From: Angel Stewart [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 16, 2002 11:28 AM
> To: CF-Community
> Subject: Code to prevent double submits
> 
> 
> The perennial problem.
> 
> User double clicks the submit button on a form :)
> Does anyone have some simple JS snippet to prevent this? So when they
> click Submit once the button is disabled let's say so they 
> cannot press
> it again?
> 
> -Gel
> 
> 
______________________________________________________________________
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