Cheers,
MICHAEL
Check it out:
http://www.labs.9thdesign.co.nz/dimensions/content/pages/
This is my code:
<script type="text/javascript" class="source">
$(function () {
$("#demo_1").tree({
rules : {
// I have not defined any of these so disabling the checks will
save CPU cycles
use_max_children : false,
use_max_depth : false
},
callback : {
onmove : function (NODE,REF_NODE,TYPE,TREE_OBJ,RB) {
alert(TREE_OBJ.get_text(NODE) + " " + TYPE + " " +
TREE_OBJ.get_text(REF_NODE));
}
},
ui : {
theme_name : 'notepad'
}
});
});
</script>
<div id="demo_1">
<ul>
<li id="phtml_1" class="open"><a href="#"><ins> </ins>Root
node 1</a>
<ul>
<li id="phtml_2"><a href="#"><ins> </ins>Child node 1</a></
li>
<li id="phtml_3"><a href="#"><ins> </ins>Child node 2</a></
li>
<li id="phtml_4"><a href="#"><ins> </ins>Some other child
node with longer text</a></li>
</ul>
</li>
<li id="phtml_5"><a href="#"><ins> </ins>Root node 2</a></li>
</ul>
</div>
I cant for the life of me work out why this doesn't want to drag and drop. I copied it exactly from the move_copy.html example page and no matter what I do it wont let me drag and drop it. Could anyone offer some suggestions?
jsTree 0.9.9a and jquery 1.4.1 its a NOGO!!!jsTree 0.9.9a uses jquery version 1.3.2
My other problem is that I can't figure out why the drag and drop
helper isn't showing. Any hints there?