Normally I set the style in the CSS, but yes, that would be useful as well. In case you have multiple kinds of buttons - happy buttons, silly buttons, sad buttons, celebrity buttons. Speaking of celebrity buttons, sometime this morning I'm being interviewed by Variety magazine. I wonder if I should get an agent. ;)
-rc > -----Original Message----- > From: Larry Lyons [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 16, 2002 11:51 AM > To: CF-Community > Subject: RE: Code to prevent double submits > > > Thanks ray I'll fool around with it a bit. I'd also suggest > possibly passing > style attributes to the tag as well. > > 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: Raymond Camden [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, April 16, 2002 11:42 AM > > To: CF-Community > > Subject: RE: Code to prevent double submits > > > > > > This would be a nice custom tag as well. > > > > <!--- > > submit button > > ---> > > <cfparam name="attributes.name"> > > <cfparam name="attributes.value" default="#attributes.name#"> > > <cfparam name="attributes.submitvalue" default="Submitting..."> > > > > <cfoutput> > > <input type="submit" name="#attributes.name#" > > value="#attributes.value#" > > onClick="if(this.value == > > '#JSEncodedFormat(attributes.value)#') > > this.form.submit(); > > this.value = '#JSEncodedFormat(attributes.submitvalue)#';" > > > > > </cfoutput> > > > > I didn't actually test this though. ;) > > > > ============================================================== > > ========= > > Raymond Camden, Principal Spectra Compliance Engineer for Macromedia > > > > Email : [EMAIL PROTECTED] > > Yahoo IM : morpheus > > > > "My ally is the Force, and a powerful ally it is." - Yoda > > > > > -----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 > > > > > > > > > ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
