I have an event on the parent page that triggers a javascript function, which in turn calls another function on the child iframe. Both pages are in the same domain and I have verified this by having javascript display the document.domain in both pages simultaneously.
This is what has worked for years, and is suggested in similar topics: windows.frames["iframeID"].somefunction(); That ceased working with Internet Explorer version 8.0.7600.16385 It does work on Internet Explorer version 8.0.6001.18702
I've tried replacing it with each of these and the result was the same: iframeName.somefunction(); document.frames("iframeName").somefunction(); top.frames[0].somefunction();
The error given is "Access is denied" and references the first bit of code in somefunction(), however, somefunction() works fine if called within the iframe itself.
Is there a new "proper" way to call functions within an iframe from the parent? Is there a workaround on the code side (I can't control the user's browser)?
EDIT: Here is the internal function: function somefunction() { somebutton.click(); } If instead I use "alert('something');", it works without error.
EDIT2: Newer version, as well as IE9's Beta have extended this to also defeat the hacky workaround, so I'm back to dead in the water.