Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
07-27-2011, 07:46 AM #1
- Join Date
- Jan 2011
- Thanked 0 Times in 0 Posts
how to handle reload button event or block it
I am generating a report on submit click.Due to size of data query execution takes some time to display result, in mean time if user press reload button on browser toolbar consequently same query request going to database and the performance become slow down. I am able to restrict user from clicking F5 and ctrl+R button but not reload button. I there any way to handle event on reload button? or can we disable reload button on submit?
Thanks in advance!
07-27-2011, 08:44 AM #2
- Join Date
- Jun 2002
- London, England
- Thanked 2,573 Times in 2,551 Posts
No, it is not possible to disable the toolbar refresh button.
Suggest you display a message saying "Please do NOT attempt to refresh this page" for an appropriate time. Ignoring duplicate submissions on the server is the correct thing to do.
All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Users who have thanked Philip M for this post: