S.Ag

Hi

Our web application uses Javascript array which stores thousands of elements, is working fine with IE 6.0, but it is showing an object error while running the same application in IE 7.0. It seems IE6 had no limit on the amount of array elements that could be allocated in memory, but IE7 has a limit. If it is true, please help us providing some solution for this.

Thanks in advance.......




Re: Internet Explorer Web Development IE 7.0 and javascript array allocation

unique_username

do you have a sample URL somewhere

IE7 is slower than IE6, but I've never encountered this behavior with Arrays.

if you could post a URL or a sample bit of code, we might be able to debug the isse.

thanks




Re: Internet Explorer Web Development IE 7.0 and javascript array allocation

S.Ag

In the application, the Javascript array is storing more than 27000 elements, and the elements are supposed to be displayed in a tree. The problem looks like with the array only, as by reducing the elements the same page is getting rendered and the tree is showing all the elements.

The piece of code is something like icnt is a variable whose upper limit is more than 25000, and varProj is the variable that holds the value of a field from a recordset and to be stored in an array within a for loop -

addElement[<%=icnt%>] = "<%=trim(varProj)%>";

Thanks

SA






Re: Internet Explorer Web Development IE 7.0 and javascript array allocation

unique_username

not sure. I just created a 35,000 array, and iterated over it a few times, printing it out, etc. It took some time, but it did work.

My guess is that either:

a.) one of the records has quotes in it that are messing things up, or
b.) the tree rendering script needs to be looked at.

good luck




Re: Internet Explorer Web Development IE 7.0 and javascript array allocation

S.Ag

You can refer the site http://www.ifjesushadawebsite.net/index.cfm/module/story/story/05142007-Internet-Explorer-7-JavaScript-and-Array-Limits/showComments/1, that states about the limit of the array, because the same piece of code is well retrieving the tree with IE 6.0.

Thanks