Connecting Tech Pros Worldwide Forums | Help | Site Map

How to solve IE and Firefox problem

Newbie
 
Join Date: Nov 2007
Posts: 1
#1: Nov 14 '07
How to solve IE and Firefox problem? can anybody help me.

IE
When reloading a page in IE no form items are re-populated.
When going back IE repopulates all form items but resets JavaScript variables and loses the state of DIVs – meaning that any UI changes and any JavaScript state changes used to detect changes made by the user are lost when going back to a previous page.

FireFox
When reloading a page Firefox will re-populate some form items. This is a problem if we use JavaScript to detect changes since the JavaScript will not trigger.
When going back Firefox will re-populate some form items but maintains JavaScript variable state and DIV state – this means that we can use JavaScript to detect changes which will remain consistent after going back, although some form items may have been reset.

gits's Avatar
Moderator
 
Join Date: May 2007
Location: Munich, Germany
Posts: 4,134
#2: Nov 14 '07

re: How to solve IE and Firefox problem


hi ...

welcome to TSDN ...

now it depends on your requirements ... to have a consistent state each time you have to control it for your own. you may create a init-function that populates the page with defaults on load of the page ... in case you want some values persistent during a session ... you may use cookies and populate the values on load from that values ...

kind regards
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#3: Nov 14 '07

re: How to solve IE and Firefox problem


Show the code for the page in question or a link to a test page.

Edit: yes, what he said ^^
dmjpro's Avatar
Lives Here
 
Join Date: Jan 2007
Location: India (West-Bengal)
Posts: 2,451
#4: Nov 14 '07

re: How to solve IE and Firefox problem


Quote:

Originally Posted by acoder

Show the code for the page in question or a link to a test page.

Edit: yes, what he said ^^

I think GITS has a good idea .....

Debasis
Reply