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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2002
    Location
    Pacific Northwest, USA
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Sending URLs to Un-NAMED-ed Windows?

    Hi Folks,

    I have a site that opens a map in a popup window. As users navigate this map, they have the option to select various locations. When selected, information regarding the specific location chosen is loaded in the original browser window (*not* the popup map window).

    Now, I know that if I myself had generated the original window, I could have named it, and then just pointed URLs to it with the TARGET attribute. Unfortunately, the original window here is the browser window the user started with when they visited the site... so it has no defined name.

    I know the DOM supports <opener>, which supposedly refers back to the window that generated a subsequent window -- can someone give me an idea of how to use this? Also, is it possible to call this <opener> via a "javascript:..." line that could be dropped into a TARGET attribute, rather than generated the entire link in JavaScript? Reason: the map in the popup window is Flash, so I only have so many options for sending URLs.

    As a backup, is there a way to assign a NAME to a previously existing window? That would easily solve my problem.

    ...Whew. Thanks for your help.

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Sending URLs to Un-NAMED-ed Windows?

    Originally posted by ScottG-D
    As a backup, is there a way to assign a NAME to a previously existing window? That would easily solve my problem.
    Backup? Isn't that what you want FIRST? Oh, and yes...in popup...

    <script>
    window.opener.window.name = "winName";
    </script>
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”


  •  

    Posting Permissions

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