[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Array w/ more than 1 dimension



Yes, even though JavaScript uses associative arrays, it is possible to do 2d and 3d arrays.
I'll post some working examples at the JavaScript 411 by Thursday.

If you have time to think through this without an immediate explination, check this out:

var model = new Object()   // this works in 2.0 -- Object is a default constructor
model[x + "," + y] = ...   // index with the string "x,y"
model[x + "," + y + "," + z]    // and so on for the "year" dimension

Mohammed
http://www.his.com/~smithers/freq/beta/index.html

<<application/ms-tnef>>