fiqs8stwme6s806a

welcome to my space

treeloader and default selection model are not working

Hi everybody

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.#
Your name:
E-mail:
Telphone:

Your comments:


If you have any other info about treeloader and default selection model are not working , Please add it free.
edit

Mexico