Perhaps you need

myRoute[1][0] = newArray();
myRoute[2][0] = newArray();

Or the like... I wasn't aware _javascript_ supported multi-dimensional
arrays... I don't doubt that it does, but I've never used them, and
unlike CF, they're 1-dimensional by default, so you don't have to
specify 1 in the arguments. If the array is being populated with
coldfusion variables, you might want to consider using something like
CFWDDX action="" or the onTap js.object() function (which is
better in a number of ways) to convert a complex cf variable to
_javascript_.

hth

s. isaac dealey   214.823.9345

new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework
http://www.turnkey.to/ontap

> You kids see anything wrong with this array?  All I get
> for an error is
> "Expected ;".

> var myRoute = new Array(1);

> myRoute[0] = new Array(1);
> myRoute[0][0] = new Array(1);

> // route information, name then id
> myRoute[0][0][0] = '120A';
> myRoute[0][0][1] = 83;

> // iteration info name then iteration
> myRoute[0][1][0] = '1';
> myRoute[0][1][1] = 53;


> myRoute[1] = new Array(1);
> myRoute[1][0] = new Array(1);

> // route information, name then id
> myRoute[1][0][0] = 'Adam's Test Route';
> myRoute[1][0][1] = 84;

> // iteration info name then iteration
> myRoute[1][1][0] = '1';
> myRoute[1][1][1] = 54;

> // iteration info name then iteration
> myRoute[1][2][0] = '2';
> myRoute[1][2][1] = 56;


> myRoute[2] = new Array(1);
> myRoute[2][0] = new Array(1);

> // route information, name then id
> myRoute[2][0][0] = 'Special';
> myRoute[2][0][1] = 85;

> // iteration info name then iteration
> myRoute[2][1][0] = '1';
> myRoute[2][1][1] = 55;

> --
> Timothy Heald
> Web Portfolio Manager
> Overseas Security Advisory Council
> U.S. Department of State
> 571.345.2319
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to