I have a simple simulated aarray with two elements:
bowl["fruit"]="apple"; bowl["nuts"]="brazilian";
I can access the value with this event:
onclick="testButton00_('fruit')">with `testButton00_` function testButton00_(key){ var t = bowl[key]; alert("testButton00_: value = "+t); }
However, whenever I try to access aarray from within the code using a key that is just an implicit string, I get undefined. Should I somehow pass the parameter with a shielded "key". Any ideas? TIA.
javascript arrays associative
cp.
source share