Re: Avoid multiple form submits.

2008-05-11 Thread Tony
There is a workaround for this on my blog www.revolutionwebdesign .com/blog Search around you should find it in there Tw On 5/9/08, Robert Rawlins [EMAIL PROTECTED] wrote: Hello Guys, I've got an issue with a form which is sometimes a little slow to process. Seems that some of the users

Avoid multiple form submits.

2008-05-09 Thread Robert Rawlins
Hello Guys, I've got an issue with a form which is sometimes a little slow to process. Seems that some of the users are clicking the submit button a whole bunch of times and we're getting a few problems arise as a result of it. How are you tackling this problem? presumably something with

Re: Avoid multiple form submits.

2008-05-09 Thread Richard Dillman
cfinput id=submit name=submit type=submit validate=submitonce / On 5/9/08, Robert Rawlins [EMAIL PROTECTED] wrote: Hello Guys, I've got an issue with a form which is sometimes a little slow to process. Seems that some of the users are clicking the submit button a whole bunch

Re: Avoid multiple form submits.

2008-05-09 Thread Larry Lyons
Assuming that the user has JavaScript turned on you can use this bit of code, it disables the button used for submitting the form once its been clicked: INPUT TYPE=Button VALUE=Submit onClick=if(this.value == 'Submit') this.form.submit(); this.value = 'Please Wait.';this.disabled=true; hth,

Re: Avoid multiple form submits.

2008-05-09 Thread Robert Rawlins
Thanks for the suggestions guys, The JS based solution doenst quite work for me, it seems to grey the button out and change the value to 'please wait' but doesnt actualy submit the form :-) I've read about this on a few different occasions and appears to be a problem with IE7 or something like

RE: Avoid multiple form submits.

2008-05-09 Thread Rich
A client side only solution can not ensure that this problem will not occur. A more robust solution is to use the Synchronizer Token Pattern from core J2EE Patterns. Here is an excerpt from http://www.corej2eepatterns.com/Design/PresoDesign.htm: Synchronizer (or Déjà vu) Token This strategy

Re: Avoid multiple form submits.

2008-05-09 Thread Massimo Foti
If what you are looking for is just a client-side solution, the TMT Validator offers this: http://www.massimocorner.com/validator/ http://www.massimocorner.com/validator/samples/generic.htm Massimo ~| Adobe® ColdFusion® 8

Re: Avoid multiple form submits.

2008-05-09 Thread Eric Haskins
The Javascript example above doesnt have a TYPE=submit so it will cause weird behavior in some browsers. I bet it will work if you add it Eric On Fri, May 9, 2008 at 10:52 AM, Massimo Foti [EMAIL PROTECTED] wrote: If what you are looking for is just a client-side solution, the TMT Validator

Re: Avoid multiple form submits.

2008-05-09 Thread Gerald Guido
Massimo? As in Massimo The DW Extension Guru? Awesome! I just wanted to say thank you SIR!! I have been using your stuff for years. And thanx for showing up when you did. I was *just* about to write a custom tag for DHTML Calendar for work. I looked and noticed that you have not posted any of

Re: Avoid multiple form submits.

2008-05-09 Thread Massimo Foti
Massimo? As in Massimo The DW Extension Guru? Yes. I looked and noticed that you have not posted any of you work to riaforge.org. Any reason for this? Yours is a great contribution to the community, both CF and Web Dev in general, and riaforge.org might serve to broaden the reach of your