wmacey
05-30-2003, 03:35 PM
I HAVE A PROBLEM THAT IS DRIVING ME CRAZY..............
I have a logon page that, upon successful logon, opens a popup window and load the main application. The main pages of the application contain either 1,2 or 3 Java Applets which in turn contain JTables.
Upon closing the application through the Logoff feature, the popup closes and the Logon page reappears. When clicking the handy little [x] in the title bar of the browser, the application completely hangs up. I have tried as much as I can possibly think of and nothing makes any difference.
If the applets on the page are not in an editing state, everything seems to work fine, but once focus is in one of the text cells, the problem is again encountered.
Any help or ideas on direction would be greatly appreciated at this point
**************************
Logon Page -- relevant parts
**************************
<script>
var mainAppWindow;
function handleClose()
{
if (mainAppWindow)
setTimeout("relocate();", 500);
return true;
}
function relocate()
{
if (mainAppWindow)
{
if (mainAppWindow.closed)
{
document.body.focus();
location.href="Logon.jsp";
}
}
else
{
document.body.focus();
location.href="Logon.jsp";
}
}
</script>
*********************
MainAppWindow Code
*********************
<script>
function destroyApplets()
{
if (document.applets[0])
document.applets[0].destroy();
if (document.applets.length>1)
document.applets[1].destroy();
if (document.applets.length>2)
document.applets[2].destroy();
top.opener.handleClose();
return true;
}
</script>
<body onUnload="return destroyApplets();">
Warren :confused:
I have a logon page that, upon successful logon, opens a popup window and load the main application. The main pages of the application contain either 1,2 or 3 Java Applets which in turn contain JTables.
Upon closing the application through the Logoff feature, the popup closes and the Logon page reappears. When clicking the handy little [x] in the title bar of the browser, the application completely hangs up. I have tried as much as I can possibly think of and nothing makes any difference.
If the applets on the page are not in an editing state, everything seems to work fine, but once focus is in one of the text cells, the problem is again encountered.
Any help or ideas on direction would be greatly appreciated at this point
**************************
Logon Page -- relevant parts
**************************
<script>
var mainAppWindow;
function handleClose()
{
if (mainAppWindow)
setTimeout("relocate();", 500);
return true;
}
function relocate()
{
if (mainAppWindow)
{
if (mainAppWindow.closed)
{
document.body.focus();
location.href="Logon.jsp";
}
}
else
{
document.body.focus();
location.href="Logon.jsp";
}
}
</script>
*********************
MainAppWindow Code
*********************
<script>
function destroyApplets()
{
if (document.applets[0])
document.applets[0].destroy();
if (document.applets.length>1)
document.applets[1].destroy();
if (document.applets.length>2)
document.applets[2].destroy();
top.opener.handleClose();
return true;
}
</script>
<body onUnload="return destroyApplets();">
Warren :confused: