homepage Welcome to WebmasterWorld Guest from 54.237.213.31
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Multi-dimensional Arrays
In JavaScript
circuitjump

10+ Year Member



 
Msg#: 44 posted 8:26 pm on Feb 6, 2002 (gmt 0)

Does anyone here feel that they can explain how multi-dimensional arrays work. Preferably two-dimensional.

I've found an article that looks to give an alright explanation but it talks about perl and javascript.
If anyone wants the article just sticky mail me and I'll send you the link.

Thanks

 

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 44 posted 9:16 pm on Feb 6, 2002 (gmt 0)

A multi-dimensional array identifies each array element with two (or more) coordinates, instead of using just one. It's like identifying points on a plane (or in a space) instead of points on a line.

Javascript does not actually support multi-dimensional arrays, but you can work around this by having an array whose elements are also arrays. There's a decent explanation on this page [javascriptkit.com].

David

10+ Year Member



 
Msg#: 44 posted 9:41 pm on Feb 6, 2002 (gmt 0)

Its been awhile since I used one, I used to think of them as a spread sheet. Where as you can refference by row and column.

circuitjump

10+ Year Member



 
Msg#: 44 posted 11:26 pm on Feb 6, 2002 (gmt 0)

Thanks ya'll :)

I also found this new page [developer.netscape.com].

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 44 posted 12:04 am on Feb 7, 2002 (gmt 0)

Good page circuitjump.

It looks like you've got a good handle on the "lunchboxes" you mentioned on the other thread [webmasterworld.com].

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved