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

IE not retaining changes on goback

Status
Not open for further replies.

javalsu

Programmer
Jan 11, 2007
5
US
I have an asp page with a large amount of javascript and ajax. A good bit of the controls are redrawn with ajax depending on the user's selections, as well as being populated using javascript and/or ajax.

Everything is working beautifully.

However, if the user proceeds to the next page, and decides that he/she wants to go back to the previous page. None of the ajax changes remain, as well as most of the javascript changes.

All of the data on the first page is saved into a database on completion of the whole process, so I know that the information is posting to the server, since I recall a good bit of it.

Does anyone know of a fix.

ps: I did not post any code on purpose, not necessarily for security reasons, but because the code is so involved, that it would fill up this little box many times over, and there is no specific section of code that suffers from this, it's all of it.

Thanks
 
If you attach a handler to the window.onload event, and re-populate the data from the server, does that work?

You might want to test that your browser fires the window.onload event when the back button is used, with various page cache settings. This would give you a heads-up on whether it would work for all users (e.g. the "automatic" page setting in IE).

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top