Tree using Json Data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • buntyindia
    New Member
    • Jun 2007
    • 101

    Tree using Json Data

    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.

    Code:
    +Head1
    -Head2
          +SubHead1
          +SubHead2
    +Head3
    Please help me in this. Is there any code available..or how can i do this in JS


    Regards,
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    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.

    Comment

    Working...