User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 425,790 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,137 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 3633 | Replies: 4
Reply
Join Date: Oct 2004
Posts: 4
Reputation: boilmyhands is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
boilmyhands boilmyhands is offline Offline
Newbie Poster

Solution Prevent subsequent submits after initial submit

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2004
Location: Wales
Posts: 735
Reputation: DaveSW is on a distinguished road 
Rep Power: 6
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: Prevent subsequent submits after initial submit

  #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  
Join Date: Oct 2004
Posts: 4
Reputation: boilmyhands is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
boilmyhands boilmyhands is offline Offline
Newbie Poster

Re: Prevent subsequent submits after initial submit

  #3  
Oct 18th, 2004
So far I have been getting great results...thanks for your help!!
Reply With Quote  
Join Date: Jul 2004
Location: Wales
Posts: 735
Reputation: DaveSW is on a distinguished road 
Rep Power: 6
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: Prevent subsequent submits after initial submit

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

Re: Prevent subsequent submits after initial submit

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 3:19 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC