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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lose runtime changes - cache?

Status
Not open for further replies.

nicsin

Programmer
Jul 31, 2003
743
GB
Hi,

I have a page where there are two cells in a table, a button and a link to another page. When the user presses the button I use a simple javascript to change the values in the cells. That works fine but if the user clicks on the link and leaves the page and then presses the "back" button to return, the changes have dissapeared and the cells contain the old values. Am I missing something? Is there a solution?

Thanks a lot,
Niko
 
You are describing normal behaviour. If you want your changes to "Stick" then you should look into using cookies - setting some data into the cookie when the values in the cells are changed - and then reading the data from the cookie when you visit the page again (to allow you to display the correct data in the cells).

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top