is an open soure treeview control written in JavaScript.

I wrote the script for my phpXplorer system. The script is not intended to be a website menu.
Due to use of the DOM the script only works in modern browsers like MSIE > 5.0, Netscape/Mozilla/Firefox and Opera.
Without support for dead Browsers the size of the script is only 12kb and there are no browser switches inside the code.
A funny feature is that the treeview is able to define its data definition by itself.
Try to click on the node images of this little example tree with the left mouse button.


Download Version 1.0

jsTree testing
renderTree()expandAll()closeAll()<textarea> = getState()setState(<textarea>)
<textarea> = getDefinition()setDefinition(<textarea>)selectNode('The Simpsons|Characters|Bart Simpson')

clear

The following table describes the configuration variables that can be overwritten.
The JavaScript code with variable declaration in the textarea below gets updated each time
you will change one of the values in the input boxes. Click on the "set" link below the textarea for testing changes with the example tree.



jsTree definition
Folder definition: top folder

Folder definition
[
  Node definition: node1,
  Node definition: node2
]

Node definition
[
  String: node name,
  [
    String: href,
    String: target,
    String: image,
    String: tooltip,
    Folder definition: node context menu
  ],
  Folder definition: sub folder
]