By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,842 Members | 2,440 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,842 IT Pros & Developers. It's quick & easy.

code taht not work on IE but work on firefox and other

P: n/a
The bottom code work on firefox and netscape, but not work on IE (vers 6)
and Opera (vers 7.54);
var x=0;
col_01=new Array();
for (var i = 0; i <col_02.length; i++)
{
if( col_02[i][0][0]==1 )
{ col_01[x]=new Array();
col_01[x][0]=col_02[i][0];
col_01[x][1]=col_02[i][1];
col_01[x][2]=col_02[i][2];
x++;
}
}

how can resolve it?
Sep 16 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
artev wrote:
The bottom code work on firefox and netscape, but not work on IE (vers 6)
and Opera (vers 7.54);
var x=0;
col_01=new Array();
if(typeof col_02=='undefined')var col_02=[[[0],[0],[0]]]

for (var i = 0; i <col_02.length; i++)
{
if( col_02[i][0][0]==1 )
{ col_01[x]=new Array();
col_01[x][0]=col_02[i][0];
col_01[x][1]=col_02[i][1];
col_01[x][2]=col_02[i][2];
x++;
}
}

how can resolve it?

I did not see where col_02 was declared, so the line
above *might* make it stop complaining.


Sep 16 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.