Nitobi User Forums Forum Index

    (RSS)
Nitobi User Forums
Nitobi Support Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Add XML to Nodes

 
Post new topic   Reply to topic    Nitobi User Forums Forum Index -> Tree
View previous topic :: View next topic  
Author Message
gerg_h



Joined: 22 Mar 2007
Posts: 3
Location: Charlotte, NC

PostPosted: Thu Nov 08, 2007 12:43 am    Post subject: Add XML to Nodes Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Nitobi User Forums Forum Index -> Tree All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group