a way to monitor child window across opener reloads ?

Discussion in 'Javascript' started by sonic_soul, Nov 11, 2004.

  1. sonic_soul

    sonic_soul Guest

    Hi,
    Is there a way to monitor a newly opepend child window with opener,
    even when the page keeps reloading ?

    Say window A opens window B and gives it a name/handle "myWindow".
    At this point anywhere in window A, we could say
    myWindow.location.href to find out where the child is.

    But what if someone was to take window A to another site, and than
    return using history button, OR reload it completely.

    upon load the var myWindow would get executed again, and it seems like
    the handle would be lost. I tried to see if there was a
    window.children collection that might still hold window B in its
    subset, but was not able to find a way thus far.
     
    sonic_soul, Nov 11, 2004
    #1
    1. Advertising

  2. sonic_soul

    RobB Guest

    (sonic_soul) wrote in message news:<>...
    > Hi,
    > Is there a way to monitor a newly opepend child window with opener,
    > even when the page keeps reloading ?
    >
    > Say window A opens window B and gives it a name/handle "myWindow".
    > At this point anywhere in window A, we could say
    > myWindow.location.href to find out where the child is.
    >
    > But what if someone was to take window A to another site, and than
    > return using history button, OR reload it completely.
    >
    > upon load the var myWindow would get executed again, and it seems like
    > the handle would be lost. I tried to see if there was a
    > window.children collection that might still hold window B in its
    > subset, but was not able to find a way thus far.


    //------------------------------------------------->

    function getWindowByName(sName, sFeatures)
    {
    return open('', sName, sFeatures || '');
    }

    //------------------------------------------------->

    Still won't help you program a window with content from another
    domain, as the "same origin policy" disallows this.
     
    RobB, Nov 12, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?TXJGZXo=?=

    Child window property window.opener null after postback

    =?Utf-8?B?TXJGZXo=?=, Apr 28, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    5,676
    =?Utf-8?B?TXJGZXo=?=
    Apr 28, 2005
  2. MrFez
    Replies:
    1
    Views:
    213
    Yunus Emre ALPĂ–ZEN [MCP]
    Apr 28, 2005
  3. Replies:
    1
    Views:
    249
  4. Replies:
    0
    Views:
    76
  5. window.opener, form.opener?

    , Jul 14, 2006, in forum: Javascript
    Replies:
    5
    Views:
    283
Loading...

Share This Page