quote:
Originally posted by SpunkyLoveMuff
code:
var myArray = new Array();
myArray[0][0] = "A1"
myArray[0][1] = "A2"
myArray[1][0] = "B1"
myArray[1][1] = "B2"
IIRC, it should be like that
Maybe not.
I once needed this type of array and had to do this:
code:
var arr = new Array();
arr[0] = new Array();
arr[0][0] = "blah";
Btw, from what I gather, it's not the timer, but what you do with it, what matters.
quote:
Originally posted by SpunkyLoveMuff
I've used multi-dimensional arrays before, but never with that method so I'm not sure if that is correct (I could be wrong though)
Well, JScript needs the Array variables to be predefined. If you don't tell it that arr[0] is an array, it'll tell you arr[0][0] is not defined.
I remember coming from using them in PHP and getting all these errors in JavaScript... I sort of learnt it the hard way...