[thelist] JS array or something else? SOLVED

Tom Dell'Aringa pixelmech at yahoo.com
Thu Nov 7 10:36:01 CST 2002


--- Burhan Khalid <burhankhalid at members.evolt.org> wrote:

> You are right on that part. However, I don't know if javascript has
> a
> two key-value (also called associative) array option. However,
> seeing
> as how you are only worried about one key, a regular array (which
> has
> a subscript) should work :
>
> (this code is php) :
>   $selection[]='0';
>   $selection[]='a';     //$selection[1]
>   ...
>   $selection[]='z';

Thanks B. I actually simply used an array such as

var alpha = new Array("DEFAULT","A","B",...);

which worked sweetly.

Tom

=====
var me = tom.pixelmech.webDeveloper();

http://www.pixelmech.com/
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]

__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2



More information about the thelist mailing list