Skip to main content

javascript limitation on array (Max Javascript Array)



The problem is not the number of array elements but the number of statements within a function. If a javascript function in IE7contains more than 32768 statements it generates this 'syntax error'.


Now a javascript function contains rarely more than 250 statements unless you are filling a big array with assigment statements of course .

A workaround for this is using multiple functions. Also it seems if you make multiple blocks (using { } ) within a function where each block contains less than 32768 statements the error also disappears. So the real cause of the problem in IE7 seems to be that they are using a short integer to count the number of statements within a block.

Popular posts from this blog

Web synchronization option for merge replication

http://msdn2.microsoft.com/en-us/library/ms151319.aspx SQL Server 2005 Books Online Implementing Replication over the Internet Replicating data over the Internet allows remote, disconnected users to access data when they need it using a connection to the Internet. Replicate data over the Internet using: A Virtual Private Network (VPN). For more information, see Publishing Data over the Internet Using VPN . The Web synchronization option for merge replication. For more information, see Web Synchronization for Merge Replication . All types of Microsoft SQL Server replication can replicate data over a VPN, but you should consider Web synchronization if you are using merge replication.

Request Signatures in Blackberry

Request Signatures in Blackberry need copy sigtool.db, sigtool.csk to SDK/component/Bin folder for example V 4.2.1 ../eclipse\plugins\net.rim.eide.componentpack4.2.1_4.2.1.17\components\bin