new window target different frame in original window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Danny

    #1

    new window target different frame in original window

    I have a frameset with three frames. From one of the frames I
    generate a new window with the javascript that is at the bottom of
    this post. From the new window, how can I target a different frame in
    the original window than the one that generated the new window? Any
    help is much needed and appreciated.

    <SCRIPT LANGUAGE="JavaS cript">
    <!--

    function launch(newURL, newName, newFeatures, orgName) {
    var remote = open(newURL, newName, newFeatures);
    if (remote.opener == null)
    remote.opener = window;
    remote.opener.n ame = orgName;
    return remote;
    }

    function launchRemote() {
    myRemote = launch("newWin. htm", "newWindow" ,
    "height=400,wid th=400,channelm ode=0,dependent =0,directories= 0,fullscreen=0, location=0,menu bar=1,resizable =1,scrollbars=0 ,status=0,toolb ar=0",
    "bottom");
    }

    // -->
    </SCRIPT>
  • kaeli

    #2
    Re: new window target different frame in original window

    In article <3e2fc02a.04072 01311.28208c40@ posting.google. com>,
    ironmann@conway corp.net enlightened us with...[color=blue]
    > I have a frameset with three frames. From one of the frames I
    > generate a new window with the javascript that is at the bottom of
    > this post. From the new window, how can I target a different frame in
    > the original window than the one that generated the new window? Any
    > help is much needed and appreciated.[/color]

    You should name the frames in the frameset. Assuming you named the frame
    you want to be targeted "main" and the frames are NOT nested (only one
    frameset tag)...

    opener.parent.f rames["main"]
    would reference that window of the frameset from the popup.

    opener is the frame (window) that opened the popup.
    ..parent is the frameset.
    ..frames["main"] is the frame named "main" in the frameset.

    HTH
    --
    --
    ~kaeli~
    Suicide is the most sincere form of self-criticism.



    Comment

    Working...