I'm opening a child aspx page that is opened from a parent page using javascript (listed below). It works GREAT the first time -- but hangs on the second and any concurrent attempts, sometimes resulting in a timeout error. Here's the code from the parent page:
function ShowPanel(url)
{
var width = 750;
var height = 575;
var left = (screen.width - width) / 2;
var top = (screen.height - height) / 2;
var params = 'width=' + width + ', height=' + height;
params += ', top=' + top + ', left=' + left;
params += ', toolbar=no';
params += ', menubar=no';
params += ', resizable=yes';
params += ', directories=no';
params += ', scrollbars=no';
params += ', status=no';
params += ', location=no';
newwin = window.open(url, 'd', params); //<--- Change This (LetterNumber) When Copying!
if (window.focus)
{
newwin.focus();
}
return false;
}
The child page is closed via another javascript function, as follows:
function CloseMe()
{
window.opener = top;
window.close();
return false;
}
Am I missing something here?
Thanks, Jason
function ShowPanel(url)
{
var width = 750;
var height = 575;
var left = (screen.width - width) / 2;
var top = (screen.height - height) / 2;
var params = 'width=' + width + ', height=' + height;
params += ', top=' + top + ', left=' + left;
params += ', toolbar=no';
params += ', menubar=no';
params += ', resizable=yes';
params += ', directories=no';
params += ', scrollbars=no';
params += ', status=no';
params += ', location=no';
newwin = window.open(url, 'd', params); //<--- Change This (LetterNumber) When Copying!
if (window.focus)
{
newwin.focus();
}
return false;
}
The child page is closed via another javascript function, as follows:
function CloseMe()
{
window.opener = top;
window.close();
return false;
}
Am I missing something here?
Thanks, Jason