posted 16 years ago
JavaScript can not handle large loops with a lot of processing.
It is better to break it up into groups an using a setTimeout to handle the smaller batches. It will allow the browser not to lock up and run the loop. It will be a little slower, but it will run. [Show a loading message to the user and remove it when the loop is done. You could also do some fancy loading bar if needed.]
Eric