D
dd
I have a situation where my code is running in an iframe
that is in the same domain as the parent page, so I'm
allowed to access it. For example I can do this:
if(parent.location.href==self.location.href) without any
exceptions. I'm also allowed to read/write anything in
there without problems.
If, however, the parent page has executed the following
command:
document.domain = "thatdomain.com";
then if my iframe wants to reference it in the above
mentioned ways then I also need to execute that cmd.
Even if my URL is http://thatdomain.com/some/thing.html
I still need to execute the command.
That's been working fine, until IE7. Now I can't access the
parent page even if I execute the domain command. If the
parent page has NOT done this domain command I can
still access it without problem.
I'm doubting there's a solution to this but you never know
that is in the same domain as the parent page, so I'm
allowed to access it. For example I can do this:
if(parent.location.href==self.location.href) without any
exceptions. I'm also allowed to read/write anything in
there without problems.
If, however, the parent page has executed the following
command:
document.domain = "thatdomain.com";
then if my iframe wants to reference it in the above
mentioned ways then I also need to execute that cmd.
Even if my URL is http://thatdomain.com/some/thing.html
I still need to execute the command.
That's been working fine, until IE7. Now I can't access the
parent page even if I execute the domain command. If the
parent page has NOT done this domain command I can
still access it without problem.
I'm doubting there's a solution to this but you never know