Hi all,
I am using tree
http://www.jeasyui.com/documentation/tree.php and I can construct the tree from db data and it looks good.
In the demo example, I can see a function calling children:-
function getChildren(){
var node = $('#tt1').tree('getSelected');
if (node){
var children = $('#tt1').tree('getChildren', node.target);
} else {
var children = $('#tt1').tree('getChildren');
}
var s = '';
for(var i=0; i<children.length; i++){
s += children
.text + ',';
}
alert(s);
}
while performing further drag and drop, I would like to get the new parentID for the moved file so that I can do some db updating, moreover, if I wish to trigger the event by 'onmouse up' rather than 'getSelected', what shall I do? Thanks!