Internet Explorer 7, JavaScript, and Array Limits
I came across this a week or so ago while at work. It turns out that there is a limitation on Microsoft's implementation of javascript in IE7, but not one too many people might run into.
It comes in regards to array allocation. Whereas IE6 had no limit on the amount of array elements that could be allocated in memory, IE7 has a limit of about 8000 array elements. I'm not sure of the exact number, but that's usually about the point we were getting our cryptic "syntax error" messages. And to clarify, that's about 8000 total array elements in one page, not just in one array.
The good news is that you can get around this problem by using table objects instead of array objects. While a little more complex to work with in javaScript, they don't have any size limitations and can still get the job done.


Me too is having problem in populating select control while adding and removing options from from array object. Its simply showing the 'Syntax Error' to me where i was trying to create array as new array()
Please suggest, any workaround if you have for this problem.
Thank You
Regards,
Shantanu
Shantanu,
You might have missed it at the bottom of my post, but I suggest using table objects instead of arrays for your objects. In many cases, they can be used similarly, but it does call for a complete code rewrite. If you have a two dimensional array, just think of the row objects as your first dimension, with your cell objects as your second dimension. However, if your array needs to have more than two dimensions, then even this solution isn't going to help you much.
Good luck!