Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 15th, 2006, 09:30 AM
Registered User
 
Join Date: Aug 2006
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

 
Old December 16th, 2006, 08:51 AM
Authorized User
 
Join Date: Mar 2006
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





Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP array_push() for associative arrays mcmahonc Beginning PHP 1 January 9th, 2010 01: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 10: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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.