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

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?

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.

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