Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE8/IE9 bug: hash history + Iframe = fail #17

Open
HitmanInWis opened this issue Sep 30, 2011 · 6 comments
Open

IE8/IE9 bug: hash history + Iframe = fail #17

HitmanInWis opened this issue Sep 30, 2011 · 6 comments

Comments

@HitmanInWis
Copy link

http://benalman.com/code/projects/jquery-hashchange/examples/bug-webkit-hash-iframe/

That example page documents a Safari/Chrome/Webkit issue with hashchange in an iframe (which has since been fixed by chrome).

However, it makes no mention that the same bug exists in IE8/9. Changing the hash inside an iframe in IE8/9 does not add to the browser history.

In this aspect, IE8/9 are actually worse handling hashchange than IE6/7. With IE 6/7, the special approach in the hashchange plugin that uses another hidden iframe works, even when the content being tracked is in an iframe. I tried changing the code to use that approach for IE8/9 as well, but it doesnt work because hitting the back button on a page with an iframe is not changing the iframe's hash value. Thus, polling doesn't overcome this issue either.

I'm at a complete loss for working though this issue for my site. Unfortunately I dont have the option of not running in an iframe - it is a facebook application, which runs on the FB site inside an iframe.

BTW, I did pick up this tidbit to confirm the functionality I am seeing: http://msdn.microsoft.com/en-us/library/cc288209%28v=vs.85%29.aspx
"Windows Internet Explorer 8. The browser's Back and Forward buttons do not generate onhashchange events for frames or iframes; instead, the frame is refreshed each time."

@thimo
Copy link

thimo commented Oct 13, 2011

The same here.

If you go back in an IE9 hashchanged frame, the URL you retrieve with Javascript (window.location) is still the same, from before the click on the Back button. But the URL in the properties for the frame has changed to what you would expect.

I've tried to find a solution by using (parts of) the hashchange code for IE6/7, with the iframe. But nothing even close to elegant.

@chrisbenseler
Copy link

I have the same issue with IE8. I'm trying to solve this problem, but no clues so far.

@cayasso
Copy link

cayasso commented Dec 1, 2011

Hey hi!!!, any update on this issue?

@cuongvu
Copy link

cuongvu commented May 15, 2012

Hello guys, i have the same issue.
Any update on this issue?
Please help.
Thank you very much.
Regards,
Cuong

@abucus
Copy link

abucus commented May 20, 2014

For now, no updates has been found. So sad ...

@claudia1204
Copy link

Same issue.
IE11,version: 11.0.9600.16428.
hash history+frame.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants