>- see footer for list info -<
My last question for today, I promise! I need to share some arrays between
JavaScript and CF. I've been using shorthand notation to create js arrays
because it's very quick, easy to read (when indented correctly), and
compact.
// example 3D js array:
myArray=
[
[
['Gary','BMW','red'],
['Fred','Ford']
],
['Claire','BMW','Green'],
['Karen','Audi'],
['Sally','Vauxhall','red']
]
];
// to get the make of Sally's car:
sallysCar=myArray[1][2][1];
The question is, can CF accept this sort of shorthand creation of arrays? I
need to create lots of arrays by hand ultimate for the use of javascript,
but would like CF to make use of them too. I'd like to avoid the verbose CF
method of creating arrays. Am I flogging a dead horse or have I overlooked
something? Thanks.
Gary.
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<