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: getFirst() not available on rootnode? From: Micha Schopman Date: March 10, 2003

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