wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "IE vs Mozilla + Java script code" Watch "IE vs Mozilla + Java script code" New topic
Author

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.

Regards,
Tina


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

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

Eric
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.

Regards,
Tina
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: IE vs Mozilla + Java script code
 
Similar Threads
why setTimeout is needed?
In Weblogic, service() being called twice
How to identify when refresh button of browser or f5 is pressed
Logout, Browser back button problem
Spring DAO Session refresh