Forum Moderators: open

Message Too Old, No Replies

opener.?

close and refresh an other page

         

daddyrox

12:51 pm on Jun 1, 2005 (gmt 0)

10+ Year Member



Hi I'm trying to close a page and refresh the opener, but I'm having a problem.

Senario: When I open popupwindow and enter the values and save it to DB, and after that close the popup. When I open the same popupwindow from either page1 or page2 and submit the changes i want the openerpage to be reloaded. Who do I find out whish page is the opener?

My test is:
function closeAndRefresh(url)
{
if (window.opener == TimeList)
{
opener.status = "";
opener.parent.main.location.href = url;
top.close();
}
else if (window.opener == TimePersonal)
{
opener.status = "";
opener.parent.main.location.href = url2;
top.close();
}
else
{
opener.status = "";
top.close();
}
}
But this doesn´t work.

daddyrox

12:52 pm on Jun 1, 2005 (gmt 0)

10+ Year Member



Who = how :)