Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1253 Error "-------" is not a function

You are here: irt.org | FAQ | JavaScript | Bugs | Q1253 [ previous next ]

Affects: Netscape Navigator 3.x 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";

©2018 Martin Webb