Connecting Tech Pros Worldwide Help | Site Map

Refreshing a parent page from a child popup

  #1  
Old February 10th, 2006, 06:15 PM
evanburen@gmail.com
Guest
 
Posts: n/a
I use this code in a popup to refresh the parent browser. It works fine
as long as the user actually clicks on this link but does not work in
cases where the user closes the child popup through the Windows X
(close) button. Any way to accomodate this also? Thanks.

<img border="0" src="close-panel.jpg" width="113" height="21"
onclick="opener.window.location.reload();self.clos e();return false;">

  #2  
Old February 10th, 2006, 06:25 PM
Torbjørn Pettersen
Guest
 
Posts: n/a

re: Refreshing a parent page from a child popup


evanburen@gmail.com wrote:[color=blue]
> I use this code in a popup to refresh the parent browser. It works
> fine as long as the user actually clicks on this link but does not
> work in cases where the user closes the child popup through the
> Windows X (close) button. Any way to accomodate this also? Thanks.
>
> <img border="0" src="close-panel.jpg" width="113" height="21"
> onclick="opener.window.location.reload();self.clos e();return false;">[/color]

Can't help you, but I am curious as to why you would do this? More
and more people now use popup killers, and most serious browsers
even has it as a built in option. And then there is the problem (for you)
that most people find popups annoying.

I even use a combination several popup killers to protect me from them.

--
Torbjørn Pettersen


  #3  
Old February 10th, 2006, 06:25 PM
evanburen@gmail.com
Guest
 
Posts: n/a

re: Refreshing a parent page from a child popup


I guess popup is the wrong terminology because none of popup blockers
affect this code. I guess new window would be more appropriate.

function openPanelManager()
{
mywindow = window.open ("panelmanager.asp",
"mywindow","location=0,status=0,scrollbars=1,width =525,height=700");
mywindow.moveTo(0,0);
}

Your <a href="javascript:openPanelManager();">Customized Profiles</a>

  #4  
Old February 10th, 2006, 08:55 PM
Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a

re: Refreshing a parent page from a child popup


evanburen@gmail.com wrote:
[color=blue]
> I use this code in a popup to refresh the parent browser. It works fine
> as long as the user actually clicks on this link but does not work in
> cases where the user closes the child popup through the Windows X
> (close) button. Any way to accomodate this also? Thanks.[/color]

Use the `onunload' event handler and be aware that it is
also called if the location of the popup document changes.


PointedEars
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem when refreshing Parent Window =?Utf-8?B?bWF2cmljazEwMQ==?= answers 1 August 4th, 2007 04:55 PM
How to Refresh the parent page while the child page is closed muthu answers 2 April 7th, 2006 09:15 AM
Refresh Parent Page Ben Schumacher answers 7 March 16th, 2006 06:55 PM