Thanks to everyone for their suggestions!
Larry,
Do I need to put anything else besides the code below into my page?
I'm a total javascript novice....
> -----Original Message-----
> From: Larry C. Lyons [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 19, 2000 11:00 AM
> To: CF-Talk
> Subject: Re: Multiple submits
>
>
> Jon,
>
> I use a bit of very simple JavaScript to change the button name. Here's
> an example:
>
> <INPUT TYPE="Button" NAME="Submit" VALUE="Submit"
> onClick="if(this.value == 'Submit') this.form.submit(); this.value =
> 'Please Wait.';">
>
> If the user clicks on the submit button, the script tests to make sure
> that the button is labelled Submit, if so it changes the button's label
> to Please Wait, and then continues with the submit, otherwise it does
> nothing. In other words if the button is labeled "Please Wait" it
> doesn't submit the form.
>
> hth,
>
> larry
>
> --
> Larry C. Lyons
> ColdFusion/Web Developer
> EBStor.com
> 8870 Rixlew Lane, Suite 201
> Manassas, Virginia 20109-3795
> tel: (703) 393-7930 x253
> fax: (703) 393-2659
> http://www.ebstor.com
> http://www.pacel.com
> email: [EMAIL PROTECTED]
>
> Chaos, panic, and disorder - my work here is done.
> --
>
>
> Jon Gage wrote:
> >
> > Does anybody have any suggestions for preventing users from
> hitting a submit
> > button multiple times?
> >
> > Thanks,
> > Jon
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists