Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2004
    Location
    Hershey, PA
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    document.write --- access is denied

    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

  • #2
    Regular Coder
    Join Date
    Jul 2003
    Location
    Massachusetts
    Posts
    472
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 and as such will throw a security exception.

  • #3
    New Coder
    Join Date
    Jun 2004
    Location
    Hershey, PA
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts
    bingo. thanks for the help and reference. problem solved.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •