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: Emil A Eklund Date: March 3, 2004
The target property is not inherited, thus must be added to each node.

Instead of
a.add(new WebFXTreeItem('Heroes','../clients/heroes.htm'));

you would have to use
var b = new WebFXTreeItem('Heroes','../clients/heroes.htm');
b.target = 'C';
a.add(b);

A bit cumbersome perhaps.

/Emil
-------------------------------------------------------



How can I use the target property to make links for items added under a folder to open in my main content frame ("C"). I can make it work for folder level links but not items added underneath. Please the sample code below to illustrate...
if (document.getElementById) {
var tree = new WebFXTree('Home', '../people.htm');
tree.target = "C";
tree.setBehavior('classic');
tree.icon = 'images/PC.gif';
tree.openIcon = 'images/PC.gif';
var a = new WebFXTreeItem('Clients', '../clients/');
a.target = "C";
tree.add(a);
a.add(new WebFXTreeItem('Heroes', '../clients/heroes.htm'));
document.write(tree);
}

Any help is greatly appreciated!



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