How to stop the browser refresh on clicking the webbrowser's refresh button ?

This is a discussion on "How to stop the browser refresh on clicking the webbrowser's refresh button ?" within the JavaScript Forum section. This forum, and the thread "How to stop the browser refresh on clicking the webbrowser's refresh button ? are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Mar 18th, 2008, 05:26
New Member
Join Date: Aug 2006
Location: Bangalore
Age: 24
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
How to stop the browser refresh on clicking the webbrowser's refresh button ?

Hi all,

I need to stop the browser refresh on clicking the webbrowser's refresh button in the menu.

Is there any means to control this refresh?

Thanks in advance
ArunKumar
Reply With Quote

  #2 (permalink)  
Old Mar 18th, 2008, 08:04
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Re: How to stop the browser refresh on clicking the webbrowser's refresh button ?

I would not recommend even trying to change a browser's default behavior in such a way as it's never the best way. The very fact you wish to do this highlights to me that there is most likely some flaw in your application you are trying to work round.

So whether it's flash, frames or whatever I am sure there is a better way...
Maybe you could be more specific about your application and why this function is required and perhaps we can show you an alternive method that isnt likely to annoy visitors.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #3 (permalink)  
Old Mar 18th, 2008, 08:30
New Member
Join Date: Aug 2006
Location: Bangalore
Age: 24
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to stop the browser refresh on clicking the webbrowser's refresh button ?

Hi Rob,

I have developed a Online Test portal. I have used iframes and javascript to traverse between questions. Application never sends request to server to get the next question. All Questions are loaded in javascript and executed in the client side.

In this case , if a end user answers 4 questions , and accidently clicks refresh in the web browser, all the user datas of the previously answered datas are getting refreshed. In one word , his test answers are vanishing.

How should I proceed in this case.? How can i restricted the user in clicking the refresh button

Thanks
Arun kumar
Reply With Quote
  #4 (permalink)  
Old Mar 18th, 2008, 23:04
CloudedVision's Avatar
Nerdy Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 942
Blog Entries: 8
Thanks: 2
Thanked 22 Times in 22 Posts
Send a message via AIM to CloudedVision Send a message via MSN to CloudedVision Send a message via Skype™ to CloudedVision
Re: How to stop the browser refresh on clicking the webbrowser's refresh button ?

you'll have to store there progress in a cookie so if they refresh it automatically goes to the correct question.
__________________
echo "Take it easy, ".$CloudedVision;
.links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; }
<quote>&quot;I think it's wrong that only one company makes the game Monopoly&quot; - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
When Refresh go 1 again gncreditcards Web Page Design 2 Jan 30th, 2008 18:24
Random .swf on refresh jtyoungs JavaScript Forum 2 Sep 19th, 2007 12:48
Error on Browser refresh HallmanBilly Flash & Multimedia Forum 0 Sep 9th, 2007 19:48
Code for button to refresh page after inserting data in sql db wacara JavaScript Forum 0 Apr 27th, 2007 02:45
Force refresh of browser Lchad Web Page Design 15 Feb 6th, 2007 18:49


All times are GMT. The time now is 19:27.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43