wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60741
    
  65

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: 24183
    
  34

Closing, duplicate of this.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tree data structure
 
Similar Threads
Dynamic, server-side construction of the tree, reading from a database
Making binary tree: memory problem
how to use jsp variables in javascript
Dynamic Tree view
Tree dataStructure