File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes IE vs Mozilla + Java script code 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 "IE vs Mozilla + Java script code" Watch "IE vs Mozilla + Java script code" New topic

IE vs Mozilla + Java script code

Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
Hello Friends,

We have one issue with the browser back button.

On the page user change change some display settings which are manupulated internally in Javascript.
The on the page unload event, the settings are written to backend [in session object] by making an AJAX request to transfer this data. These settings are applied by retrieving them from the session, if user visits this page again.

After navigating to the next page if user presses on Back button, then in Mozilla all the settings he had done before leaving the page
are reflected. But in IE, these are not reflected.

If user visits the page again with a proper navigation from menu then the settings are reflected.

Now, the user wants this to work in IE also. Back button is a requirement that should work

Help in the following is greatly appreciated -
1. if there is some known problem in IE
2. if there is some setting in IE
3. if there are some correction at code level that can do the trick.


Alongwith being a good coder, try to be a good professional as well!
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Are you making an Ajax call onload of the page to get the data again and redisplay it?

Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
No ..

The AJAX call on unload actually sets an attribute in the session.
ON load of the page, we retrieve the attribute from the session assigning its value to a hidden variable.

It works perfectly when coming from proper links.

I agree. Here's the link:
subject: IE vs Mozilla + Java script code
It's not a secret anymore!