Forum Moderators: open

Message Too Old, No Replies

Iframe want to change DIV in parent frame

Access denied error in Internet Explorer V6

         

jetteroheller

6:56 pm on Aug 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



With an mouse over, the sitemap of an other subdomain is loaded into an iframe.

The iframe contains OnMouseOver effects to exchange a <DIV> element in the parent frame

parent.top.document.getElementById('thumbdisplay').innerHTML=html;

Local, all worked fine, but now in the web, I get exactly for this line in Internet explorer an access denied error

Any idea how to come around this failure?

daveVk

3:09 am on Aug 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not sure, perhaps define function to copy content in parent window and call from child.

eg

parent.top.newThumb(html);

jetteroheller

7:31 am on Aug 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



parent.top.newThumb(html);

Also access denied

daveVk

2:48 am on Aug 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



[msdn.microsoft.com...]

setting document.domain may work

jetteroheller

5:10 pm on Aug 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks, but it was a littlt bit more complicate.

document.domain="example.com"

created on the local version an invalid argument error.

So this had to be enclosed like

try{document.domain='example.com'}catch(e){}