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?
|
|
0
|
|
|
|
Reply
|
artev
|
9/16/2006 5:05:05 PM |
|
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.
|
|
0
|
|
|
|
Reply
|
drclue
|
9/16/2006 6:22:00 PM
|
|