PDA

View Full Version : cant acess tree object



rokki
30 Apr 2010, 5:15 AM
hi all ..

i am trying to mimic the drag and drop functionality of the ext tree using context menu.. where whenever i select a left node the context menu pops up with a selected node (vault - special non leaf node to which i move the current node..) from my tree.. and upon clicking the menu item ..the selected leaf node move into the vault..

here my problem is with reloading the vault(special non leaf node) to reflect the newly added node..
i cant get access to the vault-node to call the reload function on it..




Ext.Ajax.request({
url:'saveobject.jsf',
params:ddParams,
success:function(response){

o=eval(response.responseText.trim());

if(o.status=='success'){
if(nodeToBeReloaded ){ //h
nodeToBeReloaded.reload();
updateChildCount(nodeToBeReloaded,true);
}

}

//nodeToBeReloaded hw do i get this node
//nodeToBeReloaded=dropEvent.target -- if i am using drop event the i can acces the target node like this but //how in my case
20249