Bookmark Topic Watch Topic
  • New Topic

Tree data structure

 
Anand Gondhiya
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi All,

I have created a Tree view structure using java script on my left navigation bar. Currently it uses hard coded values but I want to server sided values ( dynamic ).

can anybody tell me about java script data strucutres which can hold tree like data ?

thanks
Anand
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
If you are building it on the server side, why do you need Javascript data structures?
 
Anand Gondhiya
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Report post to moderator
because when I click on any of those leaf nodes , I want to know which was the node I had clikced / selected.

If there is way to find out which node was clicked , i can avoid having javascript
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Closing, duplicate of this.
 
    Bookmark Topic Watch Topic
  • New Topic