1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns=
"http://www.w3.org/1999/xhtml">
5 <meta http-equiv=
"content-type" content=
"text/html; charset=iso-8859-1"/>
6 <title>jQuery async treeview
</title>
8 <link rel=
"stylesheet" href=
"../jquery.treeview.css" />
9 <link rel=
"stylesheet" href=
"../red-treeview.css" />
10 <link rel=
"stylesheet" href=
"screen.css" />
12 <script src=
"../lib/jquery.js" type=
"text/javascript"></script>
13 <script src=
"../lib/jquery.cookie.js" type=
"text/javascript"></script>
14 <script src=
"../jquery.treeview.js" type=
"text/javascript"></script>
15 <script src=
"../jquery.treeview.edit.js" type=
"text/javascript"></script>
16 <script src=
"../jquery.treeview.async.js" type=
"text/javascript"></script>
18 <script type=
"text/javascript">
19 function initTrees() {
20 $("#black").treeview({
24 $("#mixed").treeview({
26 // add some additional, dynamic data and request with POST
29 "additional": function() {
30 return "yeah: " + new Date
;
37 $(document
).ready(function(){
39 $("#refresh").click(function() {
50 <h1 id=
"banner"><a href=
"http://bassistance.de/jquery-plugins/jquery-plugin-treeview/">jQuery Treeview Plugin
</a> Demo
</h1>
54 <li><a href=
".">Main Demo
</a></li>
55 <li><a href=
"source.phps">Server component used
</a></li>
58 <h4>Lazy-loading tree
</h4>
63 <h4>Mixed pre and lazy-loading
</h4>
66 <li><span>Item
1</span>
68 <li><span>Item
1.0</span>
70 <li><span>Item
1.0.0</span></li>
73 <li><span>Item
1.1</span></li>
76 <li id=
"36" class=
"hasChildren">
79 <li><span class=
"placeholder"> </span></li>
87 <button id=
"refresh">Refresh both Trees
</button>