Hi guys,
Hopefully this is an easy one. I'm trying to add a node to a rendered tree, and
then i want to set that node to be highlighted. My code is something like the
below:
tree = new YAHOO.widget.TreeView("listing-categories");
tree.render();
...later on...
var parentNode = tree.children[0];
var tmp = new YAHOO.widget.TextNode(name, parentNode, false);
tmp.highlight();
parentNode.refresh();
I've tried render()'ing the tree again among other things. What am I missing?
Thanks in advance for any help.
-Jonathan