It works quite good, even lazy loading (via JSON) is supported.
If you are new to javascript it will take you some hours, to get
it right.
The drawback is, that the user must have javascript enabled, otherwise
he can't see the tree (even the content which is inside the HTML file). At
least that's how I did it.
Some hints:
- You need to use escapejs for the initial data which can be stored in
JSON format in the HTML.
http://www.djangoproject.com/documentation/templates/#escapejs
- You need to write a view which returns JSON and you need a javascript
function which inserts the data into the tree.
BTW, I used a simple method for storing the hierarchical data: The
table has
a column which references itself. If this column is NULL, this
row/object has no
parent (root object).
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de