I\'m using a javascript associative array (arr) and am using this method to loop through it.
for(var i in arr) { var value = arr[i]; alert(i =\") \"+
For a normal array, I would have done this:
var i = arr.length; while (i--) { var value = arr[i]; alert(i =") "+ value); }
This is faster than a "for" loop.
http://blogs.oracle.com/greimer/entry/best_way_to_code_a