I am working on an facebook canvas application and want to make the back, forward and refresh browser buttons work with my ajax calls. There are several jquery plugins around that support this action, like jquery.address or history.js.
For IE9 - still HTML4 - I cannot use history pushState or replaceState and therefore need to rely on hash tags. This works well if I own one site completely, but in case we have a situation like in Facebook, where the iFrame is on a different domain than the parent (facebook.com) I am lost - due to the same origin policy.
I am able to set the parent.location.href with the hash change, but am not able to receive events inside the iFrame when the hash changes.
Setting the hash inside the iFrame will not work in IE9 - clicking on the browser back button ignores the hash change I made inside the iFrame.
Anyone sees what I am doing wrong or is inside IE9 just not possible to make use of the browser buttons from inside an iFrame with Ajax calls? Or is there a way to receive the hashchange event from the iFrame parent?
THANKS!