WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 getFirst() not available on rootnode? , Micha Schopman, March 10, 2003
     Re: getFirst() not available on rootnode?, Erik Arvidsson, March 10, 2003
         Re: getFirst() not available on rootnode?, Micha Schopman, March 10, 2003

Subject: Re: getFirst() not available on rootnode? From: Micha Schopman Date: March 10, 2003

Thanks for the fast response! I'll try this out ..


 

From: Erik Arvidsson
Sent: March 10, 2003
Subject: Re: getFirst() not available on rootnode?

As far as I know there is no such method in XTree.

You should be able to use tree.childNodes[0] instead.

erik

--------------------------------------------------------

I don't know if this is a bug or bad reference by me. I wan't the rootnode to be selected on window.onload. I guessed getFirst of the tree object is the rootnode. (also getLast seems to give me an error).
var tree = new WebFXLoadTree("Root","treenodes.cfm","javascript:setData()");
function eventOnload(){
tree.getFirst().select();
}
window.onload = eventOnload;

JS Errormessage:
'tree.getFirst()' is null or not an object
error occured on line: 203





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