hi
thanks for reading my post .
But actulay the problem is not from the frames .
There are six hyperlinks on th the top of the page. That is not inside the frames . they are placed in tables just like this
<td><a href="javascript:openHlink('Accounts','InOrganic')" style="color:#FFFFFF;"><strong> New (InOrganic)</strong></a></td>
when i click the hyperlink it calls the openHlink()
function openHlink(tab,sel,colval)
{
var imgbtPos;
try
{
//var span = document.getElementById("Chart1");
//alert('openHlink')
myleft=(screen.width)?(screen.width-600)/2:100;mytop=(screen.height)?(screen.height-500)/2:100;
settings="width=" + 600 + ",height=" + 500 + ",top=" + mytop + ",left=" + myleft + ",scrollbars=auto,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";
win2=window.open("Hlink.aspx?TAB="+tab+"&SEL="+sel+"&COL="+colval,"Hlink",settings);
trackOpen(win2);
}
catch(err)
{
alert(err);
return false;
}
}
function trackOpen(winName) {
alert('inside trackOpen');
alert('len'+openWindow.length);
try{
openWindow[openWindow.length]=winName;
var openCount = openWindow.length;
alert('rc= '+ openCount);
}
catch(err)
{
alert('trackopenerr');
}
}
In the trackOpen fun i placed alert to know the array length .But the rowcount still same that means the 'len' and 'rc' are same
I dont know when the mainpage load itself the arraylength is 3 . I am not calling the trackopen anywhere .
Somehow it's length bcomes 3 and
But if calls from other frames the length is 0 before entering the trackopen and once get inside it will increase
i couldn't find any error .Only for this hyperlink it's not inserting the window object into array
i am stuck with this problem, if anybody can point out the error please...
thanks & regards
nevviin