WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Xtree Bug?, Micha, May 1, 2003
     Re:Xtree Bug?, Micha, May 1, 2003

Subject: Xtree Bug? From: Micha Date: May 1, 2003

The loaded property and open property is set to true despite the childNodes are not completely ready.

I select the last node in tree.getSelected(). Using a timer I wait until everything is ready with loading (using xloadtree). The alert in my script gives an error despite the fact there are 10+ childNodes beneath them.

 function tree_selectLastNode(){
  if(tree.getSelected().loaded && tree.getSelected().open){
   clearTimeout(treeTimer);
   alert(tree.getSelected().childNodes.length);
   //tree.getSelected().childNodes[childNodes.length-1].focus();
  }else{
   treeTimer = setTimeout("tree_selectLast()",10);
  }
 }




Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX