File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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 ?

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63866

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

[Asking smart questions] [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

Joined: Jul 08, 2003
Posts: 24199

Closing, duplicate of this.

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: Tree data structure
It's not a secret anymore!