Adding data nodes to form variables:: You add nodes by using XPath expressions or the Form Augmenter service. When you use an expression that searches for a node that does not exist, http://livedocs.adobe.com/livecycle/8.2/wb_help/001020.htmlHOME | i have a tree with an image button for each node, when i click the image i want to add a child node to the current node.
my code
listeners : {
click: function(n,el) { XUL tree NEW - Adding nodes with a context menu / edit node names :: Feb 4, 2006 This example - a different implementation of the other XUL TREE example - shows how to add nodes by right-clicking on a node or item and http://www.captain.at/howto-xul-tree-new.phpHOME |
if (el.target.className == 'add'){
var newNode = {text:'test',leaf:true,id:999};
n.appendChild(newNode);
}
}
},but i got this error
node.setOwnerTree is not a function Adding jquery thickbox to a View dynamically without theming :: 2 posts - 1 author - Last post: Jun 19This document describes how to add the jquery thickbox plugin to a View dynamically without having to create a custom theme. http://drupal.org/node/148309HOME |
node.setOwnerTree(this.getOwnerTree());
this is how my tree looks, i'm trying to add to the "My stuff" node
8153
leaf: false
thanks, it worked, but now i got another problem, the node is added only if i first collapse the node that will be parent for the new one, then click the image. how can i add the node even if the root node was not collapsed yet.
thanks in advance
You cannot just add a Javascript object, you must add a new Ext.tree.TreeNode()
i've found a solution, i'll expand the node first.
another question: how do i make a leaf to become a root, how do i add the expand +
thanks
thanks
Challenging Books For A 14 Year Old?
First guitar : acoustic or electric?
|