Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to refresh pg when user hits back

Status
Not open for further replies.

phatening

Programmer
Aug 8, 2005
18
US
Hello fellow programmers,

If anyone has gmail, when you click on a new and bolded msg and click the back button, the msg is no longer bolded. Does anyone know how to refresh the page when the back button is clicked?

I appreciate any help. Thanks.
 
Try putting these both in the <head> of your document:
Code:
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="0">

-kaht

How much you wanna make a bet I can throw a football over them mountains?
sheepico.jpg
 
Well maybe you should be more explicit in what exactly it is that you are trying to achieve... The way you've phrased your question makes it appear you are trying to change gmail's functionality.

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
Sorry if I was being vague, but I would like to acheive the same functionality that gmail has. When a bolded msg is clicked and the user presses the back button, the msg is no longer bolded. Thanks.
 
I'm not familiar with gmail. But I would imagine that if the usual no-cache parameters are somehow not working for you then you could always drop a cookie on the users machine when they click the message, then check for that cookie in the onload event of the main screen and force a refresh if found.

But I'd do some serious investigation into your cache control first.

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top