Why, oh why, wont you drag n drop

16 views
Skip to first unread message

Michael

unread,
Feb 6, 2010, 5:44:30 PM2/6/10
to jsTree
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?

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>&nbsp;</ins>Root
node 1</a>
<ul>
<li id="phtml_2"><a href="#"><ins>&nbsp;</ins>Child node 1</a></
li>
<li id="phtml_3"><a href="#"><ins>&nbsp;</ins>Child node 2</a></
li>
<li id="phtml_4"><a href="#"><ins>&nbsp;</ins>Some other child
node with longer text</a></li>
</ul>
</li>
<li id="phtml_5"><a href="#"><ins>&nbsp;</ins>Root node 2</a></li>
</ul>
</div>

roman stachura

unread,
Feb 6, 2010, 7:07:53 PM2/6/10
to jst...@googlegroups.com
Am 06.02.2010 23:44, schrieb Michael:
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

jstree 1.0 is working with jquery 1.4.1

Michael

unread,
Feb 6, 2010, 8:30:27 PM2/6/10
to jsTree
So it is! Sorry, I figured this out afterwards!

My other problem is that I can't figure out why the drag and drop
helper isn't showing. Any hints there?

Reply all
Reply to author
Forward
0 new messages