Connecting Tech Pros Worldwide Help | Site Map

Refreshing a parent page from a child popup

 
LinkBack Thread Tools Search this Thread
  #1  
Old February 10th, 2006, 05:15 PM
evanburen@gmail.com
Guest
 
Posts: n/a
Default Refreshing a parent page from a child popup

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, 05:25 PM
Torbjørn Pettersen
Guest
 
Posts: n/a
Default 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, 05:25 PM
evanburen@gmail.com
Guest
 
Posts: n/a
Default 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, 07:55 PM
Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
Default 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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.