Glad to help. The only serious drawbacks to this one is that it obviously doesn't work if Javascript is turned off in the client browser. Also because JS is case sensitive that can cause some minor problems if you're a sloppy typist like me. I've been meaning to set this up as a custom tag so I don't have to retype this all the time.
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:38 AM > To: CF-Community > Subject: RE: Code to prevent double submits > > > *reads it over* > > *pushes glasses up on nose slightly* > > Yes..yes..yeeeeess. > This seems as though it will work juuuuust fine. > *rubs hands together* > *glances at Larry* > > Thankies :) > > *drops code into CFSTUDIO snippet* > -Gel > > > -----Original Message----- > From: Larry Lyons [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 16, 2002 11:31 AM > To: CF-Community > Subject: RE: Code to prevent double submits > > > 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 > > ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
