Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Bugs | Q1253 [ previous next ]

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

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";

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.