[eluser]jwindhorst[/eluser]
I realize this one is pretty specific, but there are always bright people running around here so I thought I would give it a shot. Here's the situation:
I have a huge JS class that was created using prototype.js' class.create() function. That was managing things mostly fine, until we filled our database with about 2400 rows, which clearly is way to much to be binding to.
Immediate solution was to dump said huge list into an iFrame, and create one function that passes the value back to original JS class. I can pass the value back to the parent, and cannot for the life of me figure out how to call a method in the JS class from outside the class itself.
Code:
// Instantiation
var ahtree=new AhTree(<?= $user->getUserType() ?>);
// method definition inside the class
bla: function()
{
alert('Inside bla');
}
// called from outside the class with
ahtree.bla();
It keeps telling me that ahtree is not defined, but ahtree is doing plenty of other stuff, it's just the one call from outside the class that fails.
Any help is appreciated.