...

View Full Version : document.write --- access is denied



pt83
06-07-2004, 11:29 PM
I want to write to a frame using document.write but get an 'access is denied' error. The target frame was generated via ASP; I do not get an error if I write to a non-ASP frame. Is there another way to change the content of this ASP frame from a script or is it simply not possible to make the changes because the ASP originates from the server?
Thanks,
pt

fredmv
06-07-2004, 11:57 PM
Let me guess. Does the file in the other frame reside on the other server? If so that's violation of the same-origin policy (http://www.mozilla.org/projects/security/components/same-origin.html) and as such will throw a security exception.

pt83
06-08-2004, 12:36 AM
bingo. thanks for the help and reference. problem solved.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum