Had a problem I came across, looping through a multidimensional associative array in JavaScript.
var oldToNewMap = { id1: { attrib1: "value1" }, id2: { attrib2: "value2" } };
//loop through mapping array for (var id in oldToNewMap) { for (var attrib in oldToNewMap[id]) { var new = oldToNewMap[id][attrib]; whatever(id, attrib, new); } }
DarrenPRILEREURSERT
May 20, 2010 at 10:22 am
The best forum so far