treeloader and default selection model are not working
i am trying to get the selected node of a tree and i did it like this:
function getActive{
var tree = document.getElementById('tree');
var sm= tree.getSelectionModel();
var node = sm.getSelectedNode();
}
i found some code like the previous in this forum but it doesnīt work and i doīt know why.
could somebody tell me what i am doing wrong??
this is the mistake thata it appears in firebug:
tree.getSelectionModel is not a function
i ve tried so many things but it is like methods are not valid and i donīt know why
thanks
#If you have any other info about this subject , Please add it free.# |