Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0
This is the forum to discuss the Wrox book Professional JavaScript for Web Developers by Nicholas C. Zakas; ISBN: 9780764579080
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 15th, 2006, 09:30 AM
Registered User
 
Join Date: Aug 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Associative arrays not shown at book

Hi.

I'm not sure if this topic is the same as in
http://p2p.wrox.com/topic.asp?TOPIC_ID=45217
but I'll ask anyway.

At page 137 is shown that a given frame named as 'topFrame'
can be addressed as 'frame["topFrame"]' and at page 337 is shown
that a form object can be addressed as 'document.forms["formZ"]'.

As in those two examples, it's clear that javascript supports
associative array, but I haven't found anywere in book how it
can be created! Can please anyone show me how and please... include
this lacking issue in next edition.

regards
Lucas Brasilino

Reply With Quote
  #2 (permalink)  
Old December 16th, 2006, 07:51 AM
Authorized User
 
Join Date: Mar 2006
Location: Munich, , Germany.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Associated Arrays are considered harmful:
http://www.andrewdupont.net/2006/05/...dered-harmful/

Use the Object for a Map instead, this is also recommended by the Mozilla Developer Center:
http://developer.mozilla.org/en/docs..._Objects:Array

/Josť Jeria
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP array_push() for associative arrays mcmahonc Beginning PHP 1 January 9th, 2010 12:13 PM
associative arrays as objects left out adspring BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 1 June 5th, 2006 01:37 PM
Error on the Example shown on the book tarzannn Classic ASP Databases 8 January 17th, 2006 09:52 PM
Receiving associative arrays chrscote Classic ASP Basics 0 June 14th, 2005 12:38 PM
Removing an Element from an Associative Array nick8245 Javascript 2 September 26th, 2003 12:15 PM



All times are GMT -4. The time now is 11:48 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.