| | |
Prevent subsequent submits after initial submit
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2004
Posts: 4
Reputation:
Solved Threads: 0
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
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
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
<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
No problem... which solution did you opt for?
•
•
Join Date: Oct 2004
Posts: 4
Reputation:
Solved Threads: 0
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
![]() |
Similar Threads
- prevent user from going back or disable submit (JavaScript / DHTML / AJAX)
- Newbie needs initial direction - Warehouse inventory program (VB.NET)
- need help requiring at least one checkbox from group to be selected (JavaScript / DHTML / AJAX)
- How to use two forms in asp (ASP)
Other Threads in the HTML and CSS Forum
- Previous Thread: HTML document
- Next Thread: Need mark-up code help.
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7





