In article <d40c60$sfj$1@azure.qinip.net>, Yereth Jansen
<yajansen.no@spam.cs.uu.nl> writes[color=blue]
>Douglas Crockford wrote:[color=green]
>> Do not use Array when you do not need .length. You should be using an
>>Object. It is best to not use the term "associative array" when
>>working in JavaScript because it will confuse you.
>> Use the typeof operator on the values you extract, and skip the ones
>>that are 'function'.
>>
http://www.crockford.com/javascript/survey.html[/color]
>
>Thank you. I was hoping for another answer than this one, but I
>suspected it was the only 'solution'. No such luck I guess. Thanks for
>helping.[/color]
It's worth saying again : if you say "associative array" you are likely
to forget that they are objects with properties, and that a method is
just a property whose value happens to be a function object.
Also, it might not occur to you to build a prototype object to keep all
the methods out of the way.
John
--
John Harris