Hi Howard,

JS can only handle one-dimensional arrays. Had a similar problem.

Patric


MS> You should declare the second array as well.

MS> holidayPackages.["Explorer 60"] = new Array();
MS> holidayPackages.["Explorer 60"].dates =
MS> ["Winter", "Easter", "Spring", "Value", "Summer", "Fall", "Halloween",
MS> "Fall 2", "Thanksgiving", "Holiday", "New Years"];

MS> I haven't tried it, but it makes sense to me.
 
MS> Matthew Small
MS> IT Supervisor
MS> Showstopper National Dance Competitions
MS> 3660 Old Kings Hwy 
MS> Murrells Inlet, SC 29576
MS> 843-357-1847
MS> http://www.showstopperonline.com

MS> -----Original Message-----
MS> From: Howard Owens [mailto:[EMAIL PROTECTED]] 
MS> Sent: Sunday, January 19, 2003 11:54 PM
MS> To: CF-Talk
MS> Subject: OT: Javascript MultiDimensional Array

MS> I tried posting this to js-jive (yahoo) and didn't get a response, so I
MS> guess I'll try here, since there's a lot of smart Javascripters on this
MS> list.


MS> I need to create some multidimensional arrays, but things aren't
MS> working like I expect ... this isn't working

MS> var holidayPackages = new Array();
MS> holidayPackages = ["Explorer 60", "GetAway
MS> Plus", "Discovery", "GetAway 300"];


MS> holidayPackages.["Explorer 60"].dates =
MS> ["Winter", "Easter", "Spring", "Value", "Summer", "Fall", "Halloween",
MS> "Fall 2", "Thanksgiving", "Holiday", "New Years"];

MS> I can get holidayPackages.dates to display the dates, but of course
MS> that does me no good. Each package has its own unique set of dates.
MS> And then, each of those date elements are going to need their own
MS> arrays of info (prices, four each for each date) ... and ideally,
MS> each date element/label will have the actual calendar date assigned,
MS> based on with package ... so in other words, I'm trying to build a
MS> pretty complex array of arrays tree.

MS> But I can't get over this first hump. What am I missing?

MS> H.


MS> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to