Hi,
I have a problem with javascript sort() method in IE6. I have a Parent html from where I am popping out a Child Window from window.open() method. In the Child Window I am getting an array through [B]opener.getAvailableList(id)
I am sorting this Array through sort() method and I am populating that value in a List box. But some times I am getting an error in the sort method and the code returns back. I am not sure why this is happening in IE6 as this code is working fine in Mozilla Browser. Is there any problem with opener.getAvailableList(id) Array object..? Please suggest me some suiteable solution for this problem..
code snippet//
function testSort ( )
{
var id = 101;
var arraytest = opener.getAvailableList(id);
arraytest.sort(); // this is throwing error sometimes..
alert(‘arraytest’+arraytest);
}
Thanks,
Shar