Dear friends, I am interested in creating a tree structure like the image attacched using jquery and json data.

datasets:

[{'name':'xxx', position:'left','parent': 0},
{'name':'yyy', position:'left','parent': 1},
{'name':'yyy', position:'middle','parent': 1},
{'name':'yyy', position:'right','parent': 1},
{'name':'yyy', position:'left','parent': 2},
{'name':'yyy', position:'right','parent': 2},
{'name':'yyy', position:'left','parent': 3}]

Where,
name - specifies name of the node
parent - node will be given number nodes direct child
position: [left/right/middle]position of the node to the parent

How to achieve this structure??.. Please suggest me.. Thank you in advance..

Member Avatar for LastMitch

I am interested in creating a tree structure like the image attacched using jquery and json data.

You used this instead:

http://www.yourfreeworld.com/script/phpmlmscript.php

I don't think any Daniweb members would post a code to help you acheive that because you are doing Multi-level Marketing. Another words you are going to make money out of this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.