gerg_h
Joined: 22 Mar 2007 Posts: 3 Location: Charlotte, NC
|
Posted: Thu Nov 08, 2007 12:43 am Post subject: Add XML to Nodes |
|
|
Hi,
What we would like to do with the Tree is add context menus to the nodes. To do this we would like add an xml child to the nodes, something like:
| Code: | <ntb:node id="123">
<menu id="menu123"><menuItem>Copy</menuItem></menu>
</ntb:node> |
We would then like to be able to use getElementById('menu123') in a function on click of the node using eventArgs when button == 2. This works except the document.getElementById('menu123'). The element isn't found. Is there something we can do to expose the menu element to an object to get a reference to it? I imagine the namespace is what is causing the issue.
Thanks for your help. |
|