File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

(dojo tree) how can I bind an event with the text?

 
ankur rathi
Ranch Hand
Posts: 3830
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone tried dojo toolkit for tree component? I have a small doubt in that.



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 tried putting text inside div and then putting div against title through javascript variable but that doesn't work.

Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic