/    Sign up×
Community /Pin to ProfileBookmark

sort() method problem with IE6

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)[/B] method.
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

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @lemontree spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...