Prevent subsequent submits after initial submit

Reply

Join Date: Oct 2004
Posts: 4
Reputation: boilmyhands is an unknown quantity at this point 
Solved Threads: 0
boilmyhands boilmyhands is offline Offline
Newbie Poster

Prevent subsequent submits after initial submit

 
0
  #1
Oct 15th, 2004
Hello,

I am wondering what is the best way to prevent users from getting too impatient after they click a submit button. I want to disable the submit button somehow after they click it the first time. I have seen other sites that foward the user to a "Please wait while we process your request" screen.

My problem is that many of the reports users are running can take upwards of a minute, and I see many users getting impatient and clicking submit multiple times.

Any help is -greatly- appreciated.

Thanks!!!

Pedro
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 764
Reputation: DaveSW is on a distinguished road 
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: Prevent subsequent submits after initial submit

 
0
  #2
Oct 16th, 2004
try editing your form tag to look like:
<form onsubmit="this.onsubmit = new Function('return false');">

or for the one that changes:
http://www.rgagnon.com/jsdetails/js-0110.html

or alternatively:
http://www.eggheadcafe.com/PrintSear....asp?LINKID=98
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 4
Reputation: boilmyhands is an unknown quantity at this point 
Solved Threads: 0
boilmyhands boilmyhands is offline Offline
Newbie Poster

Re: Prevent subsequent submits after initial submit

 
0
  #3
Oct 18th, 2004
So far I have been getting great results...thanks for your help!!
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 764
Reputation: DaveSW is on a distinguished road 
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: Prevent subsequent submits after initial submit

 
0
  #4
Oct 18th, 2004
No problem... which solution did you opt for?
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 4
Reputation: boilmyhands is an unknown quantity at this point 
Solved Threads: 0
boilmyhands boilmyhands is offline Offline
Newbie Poster

Re: Prevent subsequent submits after initial submit

 
0
  #5
Oct 19th, 2004
As I was in a pretty critical situation, I opted for the just greying out of the buttons. I am now looking in to ways to either forward the user to a dummy temporary page, i.e. "please wait while we process your request" (maybe a little bar graphic as well), before I return the results to the user. At least for now the user will not be able to flood the web servers though
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC