WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Xtree, frames and targets, TimT, March 3, 2004
     Re:Xtree, frames and targets , Guillermo, March 4, 2004
     Re:Xtree, frames and targets, Emil A Eklund, March 3, 2004
         Re:Xtree, frames and targets, Erik Arvidsson, March 4, 2004
         Re:Xtree, frames and targets, TimT, March 3, 2004
             Re:Xtree, frames and targets, Emil A Eklund, March 4, 2004

Subject: Re:Xtree, frames and targets From: Erik Arvidsson Date: March 4, 2004
Would it not work to set the target on the prototype... checking code... yeah, that should work

WebFXTreeItem.prototype.target = "C"

Now all tree items will use C as target. Reset this to null or some other target for the nodes that do not need a target.

An alternative is to create a sub class that always use C as target

function TreeItemTargetC()
{
WebFXTreeItem.apply( this, arguments );
this.target = "C";
}
TreeItemTargetC.prototype = new WebFXTreeItem;

erik



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