aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Tree data structure Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic
Author

Tree data structure

Anand Gondhiya
Ranch Hand

Joined: Feb 24, 2004
Posts: 155
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

Joined: Jan 10, 2002
Posts: 61627
    
  67

If you are building it on the server side, why do you need Javascript data structures?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Anand Gondhiya
Ranch Hand

Joined: Feb 24, 2004
Posts: 155
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

Joined: Jul 08, 2003
Posts: 24187
    
  34

Closing, duplicate of this.


[Jess in Action][AskingGoodQuestions]
 
Don't get me started about those stupid light bulbs.
 
subject: Tree data structure