This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IE vs Mozilla + Java script code
 
Similar Threads
why setTimeout is needed?
Logout, Browser back button problem
How to identify when refresh button of browser or f5 is pressed
In Weblogic, service() being called twice
Spring DAO Session refresh