Hello
I have defined an array
var fruit = new Hash();
fruit.set('apple','a');
fruit.set('banana','b');

In code I get a string either from the user or passed between functions, and
store it in variable getFruitAbbr.  However when I try
fruit.get(getFruitAbbr) for getFruitAbbr having one of the keys, I get
undefined.  If I try to fruit.unset(getFruitAbbr) to eliminate key and value
pair, I get undefined.  I believe my problem is I cant/dont know the syntax
to parameterize the access to a prototype maintained hash table.  Is that
it?  Something else?  How do I programatically, non-explicitly, access
hash?  tia.

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to