I have a Java Script loop which will be polling if any child windows are closed.
The code is working fine in all versions of IE in the local system.
But when we invoke the application via CITRIX and IE6 then we are getting the PERMISSION DENIED error.
and the same is not coming with the CITRIX and IE7.
This is the code.
function singleChildWinClosed()
{
if (closeOtherChildWinRunning==false && logout==false )
{
var j=0;
for(j=0;j<track.length;j++)
{
if ( (track[j]) && (! track[j].closed) )
{
// do nothing
// just watch when it is going to be closed
}
else
{
var k=0;
var l=0;
var temp=new Array();
noOfChildWin=noOfChildWin-1;
for(k=0;k<track.length;k++)
{
if (k!=j)
{
temp[l]=track[k];
l=l+1;
}
}
track=temp;
if (noOfChildWin==-1)
{
clearInterval(chksingleChildWinClosedNow);
chksingleChildWinClosedNow='';
var f = document.forms[0];
if (f)
{
f.elements["userAction"].value = "<%=ControlPage.SYNCHRONIZE %>";
f.submit();
}
}
break;
}
}
}
The error is cmng at this like
if ( (track[j]) && (! track[j].closed) )
Please help me. This is very urgent.