window.location.href is not working under IE 7/8/9
I am using java script to provide a page to the client, in the page there are two checkboxes, i.e. "All countries" and "Asian Countries", so when i check the checkbox "Asian Countries" and click replot button, the page displays only asain counties but after some specific when the page reloads , it displays all other countries along with asian countries, and the checkbox "Asian Countries" is still selected, what i want is that after the page reloads it should display only the countries for which the checkbox was selected before. i am using window.location.href for providing the URL i.e.
Hi thanks for the reply,
I have tried it, but when the page reloads after the refresh timer reaches zero, then the checkbox 0 (zero) is selected by default and shows all the countries, and the checkbox 1 is deselected . i want that when the page reloads it should reload with the same options selected as before.
Does the page linked-to at filename.html?gmlat= use a script to dynamically select the checkboxes?
If so, then visiting just filename.html (without the query-string) may not do this (unless there is some more script involved on that page). In which case, whether the boxes are checked, or unchecked, is entirely dependent on the browser and, for some, their settings. This behaviour is not defined: that is, it cannot be depended upon.
In which case, a script would be needed that will store, and retrieve, the current checked-state(s) in (usually) a cookie.
[I'm guessing that the boxes are only checked currently because this is how FF and the other browsers behave.]
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
Last edited by AndrewGSW; 12-10-2012 at 08:52 PM..