By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,575 Members | 1,303 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,575 IT Pros & Developers. It's quick & easy.

Tree using Json Data

100+
P: 101
hi,

I have some data in JSON form. I have to create a Tree structure using that..
Firstly by default all the main headings section will get load like follows.

+Head1
+Head2
+Head3

When user click on any of the heading it will load only that section by sending a request by ajax.

Expand|Select|Wrap|Line Numbers
  1. +Head1
  2. -Head2
  3.       +SubHead1
  4.       +SubHead2
  5. +Head3
Please help me in this. Is there any code available..or how can i do this in JS


Regards,
Jun 24 '08 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
There are some tree menu scripts. Search for "javascript tree menu".

If you want to use Ajax, you'll have to adapt any script you use unless you use a framework/library that has a tree menu component.
Jun 24 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.