You should declare the second array as well.

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

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

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

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


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

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


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

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

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

H.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

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

Reply via email to