A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
(dojo tree) how can I bind an event with the text?
Joined: Oct 11, 2004
Sep 19, 2007 23:28:00
Anyone tried dojo toolkit for tree component? I have a small doubt in that.
<div class="dojo-Tree"> <div class="dojo-TreeNode" title="<%= aJavaVariable %>"> <div class="dojo-TreeNode" title="<%= bJavaVariable %>"></div> </div> </div>
Here, value of the title attributes are displayed in the tree as text i.e. aJavaVariable is 'dad' and bJavaVariable is 'son' then son will be under dad...
Now I want to associate an onClick event on the text (when I click on say 'son' an alert should pop up), how to do that?
How can I bind (associate) an event with the text?
I agree. Here's the link:
subject: (dojo tree) how can I bind an event with the text?
unable to view primefaces tree
How to show icons in Tree using DOJO 0.4
Can't get RequestDispatcher forward() method or response.sendRedirect() to work
JQuery Selector Help needed
DOJO Tree using 0.4
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014