#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    4
    Rep Power
    0
    I have the following situation:

    a parent window open a child window (with "window.open(etc...)") and at the same time navigate itself at a new URL1.

    at the time of closing the child window I want to navigate the parent window to URL2. I treat event "onunload" of the child window, but the object "window.opener" does not exist anymore after the parent navigate to URL1.

    is any posibility to manage this situation??

    Please HELP!!!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    81
    Rep Power
    15
    When you open the child window, use an expression like:

    win1 = window.open(.....)

    At some point within the parent, use an if...then statement to check for existance of the child. For example, using a javascript URL in the <body> tag, try:

    <body onfocus="javascript win1)?( window.location=URL);">

    In the above case, anytime the parent regains focus, it checks for existance of win1. If it does exist, the script does nothing ( . Sometimes I just put in a dummy expression like x=1. If it doesn't exist, it loads URL.

    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by Dr@aMcula:
    I have the following situation:

    a parent window open a child window (with "window.open(etc...)") and at the same time navigate itself at a new URL1.

    at the time of closing the child window I want to navigate the parent window to URL2. I treat event "onunload" of the child window, but the object "window.opener" does not exist anymore after the parent navigate to URL1.

    is any posibility to manage this situation??

    Please HELP!!!
    [/quote]

  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    81
    Rep Power
    15
    I apologize for the smiley faces. Forgot to disable the damn things. Here is my post again hopefully without the smiley faces.

    When you open the child window, use an expression like:
    win1 = window.open(.....)

    At some point within the parent, use an if...then statement to check for existance of the child. For example, using a javascript URL in the <body> tag, try:

    <body onfocus="javascript win1)?( window.location=URL);">

    In the above case, anytime the parent regains focus, it checks for existance of win1. If it does exist, the script does nothing (Sometimes I just put in a dummy expression like x=1. If it doesn't exist, it loads URL.

  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    4
    Rep Power
    0
    Hi,

    Thanks a lot for your help!!

    I am now edified about the situation and my problem is solved.

    Thanks again!

Similar Threads

  1. .NET vs. Windows API programming
    By anatol in forum .Net Development
    Replies: 5
    Last Post: January 23rd, 2004, 10:23 AM
  2. Matrix Reseller - Windows 2003 and FreeBSD $35 ColdFusion MX
    By vortech in forum Web Hosting Offers
    Replies: 0
    Last Post: October 14th, 2003, 07:07 PM
  3. Jobs: System Software Dev
    By sridharr in forum Hire A Programmer
    Replies: 0
    Last Post: August 1st, 2003, 03:12 AM
  4. setting up jsp environment on windows 98
    By valensnow in forum Java Help
    Replies: 2
    Last Post: July 14th, 2003, 02:35 PM
  5. Need Help Networking A Desktop and Labtop
    By grkgqmodel in forum Networking Help
    Replies: 1
    Last Post: June 20th, 2003, 02:55 PM

IMN logo majestic logo threadwatch logo seochat tools logo