•
•
•
•
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
![]() |
•
•
Join Date: Oct 2004
Posts: 4
Reputation:
Rep Power: 0
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:
Rep Power: 0
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
![]() |
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Is session will work if cookies are disbaled on clinet side? (PHP)
- Form Fields (JavaScript / DHTML / AJAX)
- What software prevent sending my passwords to the Internet? (Viruses, Spyware and other Nasties)
Other Threads in the HTML and CSS Forum
- Previous Thread: HTML document
- Next Thread: Need mark-up code help.


Linear Mode