English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm working on a project that invovles making a tree menu. To do so I'm using an array. The problem is that the program I' writting stops displaying values after # 36 (including 0). Is there a limit?

2006-07-10 04:33:08 · 3 answers · asked by tallballa07 3 in Computers & Internet Programming & Design

3 answers

In theory no, there is no limit. However you are limited by the computer that is running the JavaScript. Since most likely you are creating the JavaScript array for the web you really have to consider the fact that there are many people on the web with slow connections or weak computers.

The problem you are dealing with is likely with a loop in the creation of your array. If you are not currently I would recommend trying to run the code in FireFox and check out the JavaScript Console under tools. If it shows and error you likely found your problem. If there is no error the issue is likely your loop breaking.

Good luck!

2006-07-10 04:49:06 · answer #1 · answered by TransportExpert 4 · 3 0

According to http://sharkysoft.com/tutorials/jsa/content/063.html
there is no limit to the number of items that can be in an array in JavaScript.

2006-07-10 11:42:59 · answer #2 · answered by deanyourfriendinky 7 · 0 0

No, you can always a 3 deminsonal dynamic array. You cna also dispose of the values you don't want on the fly.

Hope it helps.

-RR

2006-07-10 11:37:42 · answer #3 · answered by Rohit R. 2 · 0 0

fedest.com, questions and answers