my dog learned polymorphism
The moose likes HTML, CSS and JavaScript and the fly likes AJAX, DOM, and history Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "AJAX, DOM, and history" Watch "AJAX, DOM, and history" New topic

AJAX, DOM, and history

Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 832
I have a series of AJAX calls on my page that populate some dropdowns. If the user selects some of the values in these dropdowns and proceeds to next page via submitting the form everything passes fine. I want to be able to allow the user to go back (using back button) and still see the values he/she selected and have the values still display in the dropdowns as before. How can I accomplish this? The AJAX calls populate dropdowns and the user chooses from these fields it looks like returning to the page using a back button erases or doesn't seem to recall data generated this way. Is there a way to return to a page with AJAX calls that populated dropdowns and still have the items that were chosen still show up? Thanks in advance for any info.

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Cookies my friend, cookies. They are good with a glass of milk and they are good with remembering states of things as long as the user has them enabled.

I agree. Here's the link:
subject: AJAX, DOM, and history
It's not a secret anymore!