HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 2nd, 2000, 09:33 AM
Dr@aMcula Dr@aMcula is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 4 Dr@aMcula User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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!!!

Reply With Quote
  #2  
Old June 9th, 2000, 04:43 PM
rkmarcks rkmarcks is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 81 rkmarcks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via AIM to rkmarcks
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]


Reply With Quote
  #3  
Old June 13th, 2000, 01:17 AM
rkmarcks rkmarcks is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 81 rkmarcks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via AIM to rkmarcks
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.


Reply With Quote
  #4  
Old June 13th, 2000, 12:42 PM
Dr@aMcula Dr@aMcula is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 4 Dr@aMcula User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi,

Thanks a lot for your help!!

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

Thanks again!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Handling windows history


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway