Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Stop the ability to Refresh the page
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Stop the ability to Refresh the page

 Post Reply Post Reply Page  <12
Author
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 22 August 2003 at 6:02am

as said....

regardless if you could or couldn't intercept F5 (that is possible), you are not going to be able to stop the "refresh" button on the browser bar itself

Contribute to the working anarchy we fondly call the Internet
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 22 August 2003 at 8:20am
if you don't want to submit a form twice then redirect away from the processing page as soon as it's processed.
Back to Top
b_bonnett View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Location: New Zealand
Status: Offline
Points: 275
Post Options Post Options   Thanks (0) Thanks(0)   Quote b_bonnett Quote  Post ReplyReply Direct Link To This Post Posted: 22 August 2003 at 5:38pm

Or you could do what Bruce has done with these forums - use Javascript to disable the submit button once the form has been submitted:

document.FormName.SubmitButton.disabled=true;

Blair



Edited by b_bonnett
Webmaster, The Plane Gallery
Greetings From Christchurch
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 23 August 2003 at 12:58am
Originally posted by b_bonnett b_bonnett wrote:

use Javascript to disable the submit button once the form has been submitted

Disabling Submitting twice is a different case...
 
Consider you already submitted a form, that for example add records to a database, and when the process is completed you refreshed!!!
 
the form will be submitted again and will duplicate the entry in the database....
 
 
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 23 August 2003 at 1:03am

Originally posted by pmormr pmormr wrote:

if you don't want to submit a form twice then redirect away from the processing page as soon as it's processed.

a good idea to consider

but also sometimes it takes a long time to a form to be submitted (Server time) as for example sending mail to a mailing list or so on, so the user may think that the page needs to be refreshed, and so Refresh before the page being redirected...

 

in all ways... we were thinking on how to stop page refreshing... either we will find a use for it or not ... but as you all aggreed... "It is a weak case"... I surrender ...

 

Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.