
August 28th, 2004, 12:03 PM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
close and refresh parent issue
I've seen in other threads the use of the code:
Code:
function refreshParent() {
window.opener.location.href = window.opener.location.href;
if (window.opener.progressWindow)
{
window.opener.progressWindow.close();
}
window.close();
}
It seemed to work for everyone else, but I'm having problems.
It closes the window in all browsers, but only refreshes the parent window in Safari.
I am using this code to pop up a window:
Code:
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
if(popUpWin)
{
if(!popUpWin.closed) popUpWin.close();
}
popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,m enub ar=no,scrollbars=yes,resizable=yes,copyhistory=yes ,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
Thanks in advance for your help.
|