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 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help with window opener in different server

    I've a problem managing window, i've a main window, it open a child window, but it is in other server(php), when i try to retrieve a value in a parent window, it doesn't work,
    the error in javaScript is:

    Error: uncaught exception: Permission denied to access property

    can anyone help me? i really apreciate any suggestion.

    thanks in advance,

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You'll never get this to work when both pages aren't on the SAME server. It's a security thing, accessing pages from a different server would allow for cross-site scripting which is a major no-no on the web.
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #3
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,966
    Thanks
    0
    Thanked 236 Times in 233 Posts
    What you can do is pass the needed data in the URL as querystring when you open the child window.

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by glenngv
    What you can do is pass the needed data in the URL as querystring when you open the child window.
    The parent is trying to get a value from the child window, not send one to that window so that's not going to be an option in this case.
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #5
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,966
    Thanks
    0
    Thanked 236 Times in 233 Posts
    Quote Originally Posted by Roy Sinclair
    The parent is trying to get a value from the child window, not send one to that window so that's not going to be an option in this case.
    Yes, but it could also mean the other way around.
    Quote Originally Posted by saxel
    i've a main window, it open a child window, but it is in other server(php), when i try to retrieve a value in a parent window, it doesn't work
    Only saxel can clarify this.


  •  

    Posting Permissions

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