Hi folks,
I'm suffering from a no doubt self-inflicted problem with the
brilliant Treeview plugin - when I click a sub-branch to collapse it,
it does collapse, but then immediately expands.
The plugin's example page
(http://jquery.bassistance.de/treeview/treeviewDemo.html) has it (the
plugin) working its magic on all ul tags in the body of the
page. For my use, I wanted to contain this behaviour to a particular
div on my page (jqtree) so I altered the document ready code to read..
$(document).ready(function() {
$("#jqtree > ul:first").Treeview({ control: "#treecontrol" });
var lastTree = $("#jqtree > ul:last").Treeview({ speed:
"fast", collapsed: false });
});
Then within my page, I have used the following code...
<div id="jqtree"><div id="treecontrol"><a href="#">collapse all</a> /
<a href="#">expand all</a> / <a href="#">toggle all</a></div>
[snip]..the tree..[snip]
</div>
The treecontrol links work fine - the whole tree collapses and
expands as expected. It is just the collapsing/expanding of
sub-branches where my problem exists. What mistake have I made ?
Thanks,
Bruce
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/