473,321 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

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;">

Feb 10 '06 #1
3 5831
ev*******@gmail.com wrote:
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;">


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
Feb 10 '06 #2
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>

Feb 10 '06 #3
ev*******@gmail.com wrote:
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.


Use the `onunload' event handler and be aware that it is
also called if the location of the popup document changes.
PointedEars
Feb 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Earl Teigrob | last post by:
I am thinking about using a popup window to edit settings that will affect parent asp.net page. The data that is changed in the popup window will be saved to the datastore that is loaded and...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
4
by: Sileesh | last post by:
Hi I have a btn in Parent.aspx page . On server_click() of the Btn, i am opening a new window called the child.apsx window. Child window also have a Btn. On serverClick of this Btn, I perform...
1
by: dana lees | last post by:
Hello, I am developing a C# asp.net application. I have a page in which there is a dropdown of users. I have another popup window in which i can add/update the users list. After...
2
by: epaetz | last post by:
Is there a way to decouple the linkage between a parent and a child window? Does the parent window have any sort of a collection that holds all the children that it has spawned? I want to...
5
by: aljamala | last post by:
Hi, I have a link for an employee directory search page. The link (http:// xxxx/Search.aspx) works fine, however, I have another link to do an Advanced Find. and its href is...
0
by: mpar16 | last post by:
Hi, I need help: when i open a popup in asp.net for a while parent page(main page) session get expires after a while. But still it waits until i close child popup.i have tried following solutions ...
1
by: =?Utf-8?B?bWF2cmljazEwMQ==?= | last post by:
Hi, I have a page which has some custom controls. The page works fine and doesn't break on any number of refreshes. There is button on the page, that starts a new child window. After doing any...
4
by: Buddha | last post by:
Hello, I posted this on two forums, without too much help .. and I am kinda stuck in this. I need to refresh the parent page from the second child window which is opened by the first child and...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.