I have some data in a separate .js file similar to this:
data = new Object();
data['cat'] = ['Mr. Whiskers','Wobbles'];
data['dog'] = ['Toothy'];
data['fish'] = ['goldy','roose'];
function getStuff(info)
{
var stuff = data[info.value];
return stuff;
}
Now in another html file with a block, I have something like this:
function theDrop(dynamic) {
alert(getStuff(dynamic));
}
The box says undefined, why?
alert(getStuff(dynamic));theDropbeing called?theDrop?