You are here: irt.org | FAQ | JavaScript | Bugs | Q1253 [ previous next ]
Affects: 3.x
If you use the following array construction:
myArray = new Array( "item1", "item2", . . "itemN" );
and you have more than 255 entries, you will get an error in Netscape Navigator 3+.
Use this instead:
myArray = new Array(); i=0; myArray[i++] = "item1"; myArray[i++] = "item2"; myArray[i++] = "item3"; myArray[i++] = "item4"; myArray[i++] = "item5"; . . myArray[i++] = "item300";