i know that to create multidimensional arrays in javascript you have to create an array of arrays, seeing as it doesn't support them properly. so, if i wanted to create a 4x500 array like this:
would i have to do this:Code:Col0 Col1 Col2 Col3 Row0 Row0 Row0 Row0 Row1 Row1 Row1 Row1 Row2 Row2 Row2 Row2 .... .... .... .... Row499 Row499 Row499 Row499
if so, bugger that!Code:var arrStuff = new Array(new Array(3), new Array(3), new Array(3), new Array(3)...500 times)![]()




Reply With Quote