WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 XTREE automate open, Seb , July 25, 2003

Subject: XTREE automate open From: Seb Date: July 25, 2003

Hi All
I've seen this post to help me but how to know which id is selected (i mean when i click)

Thanks

/* xTree addons */
      function tree_selectItem( sId
) {
        var oNode = webFXTreeHandler.all['webfx-tree-object-' + sId];
        tree_reveal( oNode );
        oNode.select();
      }

      function tree_reveal( oNode ) {
        if( oNode.parentNode
) {
          oNode.parentNode.expand();
          tree_reveal( oNode.parentNode );
       
 }
        }

You just have to check the item number, and call it.
For example:

<BODY ONLOAD="tree_selectItem('5');">

I hope this helps...


Cheers,
Guilherme Blanco




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