468,241 Members | 1,420 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,241 developers. It's quick & easy.

acess denied "doc = this.IFrame.contentWindow.document;"

I am trying to implement the busybox sample from
// From Mark Wagner
// http://blogs.crsw.com/mark/articles/642.aspx

When I get to this line I get an access denied error. Could someone
give me an idea why this might be?
Here is the entire function

CODE::

BusyBox.prototype.GetIFrameDocument = function()
{
var doc;

if( this.IFrame.contentDocument )
// For NS6
doc = this.IFrame.contentDocument;
else if( this.IFrame.contentWindow )
// For IE5.5 and IE6
doc = this.IFrame.contentWindow.document; // ERROR HERE
else if( this.IFrame.document )
// For IE5
doc = this.IFrame.document;
else
// TODO: Confirm this should be the default
doc = this.IFrame.document;

return doc;
}

END CODE::

May 10 '06 #1
1 8888
VK

gs***@blizzardice.com wrote:
I am trying to implement the busybox sample from
// From Mark Wagner
// http://blogs.crsw.com/mark/articles/642.aspx

When I get to this line I get an access denied error. Could someone
give me an idea why this might be?


Cross-domain security. All pages have to be from the same domain where
"the same domain" means that the part "http://www.bogus.com" is
identical. The differences can start only after ".com"

May 10 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Robert Oschler | last post: by
27 posts views Thread by Tom Rodman | last post: by
2 posts views Thread by Boki | last post: by
reply views Thread by =?Utf-8?B?SmVzcGVyLCBEZW5tYXJr?= | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.