Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

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.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Mar 18th, 2008, 07: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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Mar 18th, 2008, 10:04
Rob's Avatar
Rob Rob is offline
Webforumz Founder

SuperMember
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,190
Blog Entries: 7
Thanks: 28
Thanked 22 Times in 19 Posts
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 - Webforumz Founder

I am currently NOT available for SEO consultancy work

My Sites: Student Midwife Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Mar 18th, 2008, 10: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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Mar 19th, 2008, 01:04
CloudedVision's Avatar
Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 1,344
Blog Entries: 9
Thanks: 2
Thanked 45 Times in 45 Posts
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.
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
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 19:24
Random .swf on refresh jtyoungs JavaScript Forum 2 Sep 19th, 2007 13:48
Error on Browser refresh HallmanBilly Flash & Multimedia Forum 0 Sep 9th, 2007 20:48
Code for button to refresh page after inserting data in sql db wacara JavaScript Forum 0 Apr 27th, 2007 03:45
Force refresh of browser Lchad Web Page Design 15 Feb 6th, 2007 19:49


All times are GMT. The time now is 05:59.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8