aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes DHTML and 'back' button ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "DHTML and Watch "DHTML and New topic
Author

DHTML and 'back' button ?

Sol Mayer-Orn
Ranch Hand

Joined: Nov 13, 2002
Posts: 310
Hi,

I'm using DHTML, but my page gets meesed up when clicking the "Back" button on the browser...

Example: say I have a 'select' control with a list of countries.
Whenever the selected country changes, I use DHTML to display the capitol of the selected country ( in some < span > in the page).

Full code:


This works fine, untill I navigate to another page, and then use "Back" to return to my page... when using 'back', the displayed capitol will always be 'London' regardless of the selected country...

Help would be appriciated.
Thanks
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
You would probably have to use cookies and fire an event of window.onload

Eric
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: DHTML and 'back' button ?
 
Similar Threads
Problem with xmlhttp.responseXML
Help needed with DOJO and JSP
Ajax, Struts, and a few pesky event based issues
dojo and javascript DOM issue
javascript help