D
Dennis Ålund
Is it possible to notice a change of window.location.hash without
polling?
I'm working on a Ajax-platform (yes, inventing the wheel again) and
have finished almost everything except the support for
back/forward-buttons. The track I'm working on is "hidden frames" to
keep state in window.location.hash. I've seen some solutions along this
way that includes polling window.location for a change... which doesn't
comply with my otherwise strict event-driven design.
What I want is a way to notice the change between:
http://www.anysite.foo/index.html#{state_information}
and
http://www.anysite.foo/index.html#{new_state_information}
How can I catch this event in case the change is made by the browser's
back button?
/D
polling?
I'm working on a Ajax-platform (yes, inventing the wheel again) and
have finished almost everything except the support for
back/forward-buttons. The track I'm working on is "hidden frames" to
keep state in window.location.hash. I've seen some solutions along this
way that includes polling window.location for a change... which doesn't
comply with my otherwise strict event-driven design.
What I want is a way to notice the change between:
http://www.anysite.foo/index.html#{state_information}
and
http://www.anysite.foo/index.html#{new_state_information}
How can I catch this event in case the change is made by the browser's
back button?
/D