Drag'n drop problems (Using Firefox)

62 views
Skip to first unread message

jonila

unread,
Jan 14, 2011, 4:14:02 AM1/14/11
to Discuss jquery.dynatree.js
First I want to say that this is an incredible and sophisticated
(1.0.3) plugin you have created and I thank you for that.

I'm using the dnd feature in dynatree and this issue occured at least
in Firefox (mac) 3.6.? I didn't have time to test this with every
browser etc.
It seems that if you have the "loose" doctype in html page, the
"hitmode" is calculated wrong in Firefox
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://
www.w3.org/TR/html4/loose.dtd">

But it works as it should when using the strict doctype or html 5
doctype
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/
TR/html4/strict.dtd">
OR
<!DOCTYPE html>


So if someone there is having dnd issues with firefox check your
doctype!


Thanks

mar10

unread,
Jan 14, 2011, 11:07:38 AM1/14/11
to Discuss jquery.dynatree.js
thanks for pointing at this.
Would you mind creating an issue for this?

Henry Hu

unread,
Jan 14, 2011, 9:12:20 PM1/14/11
to dyna...@googlegroups.com
Hi guys,

I got 2 questions about dynatree's nodes, here are these:

1. When defining a node, the default key of the node is null. But
I find it's not true. I always get a _3 like key by node.data.key.
How the keys of nodes are generated? Should I assign them when I
create nodes, if I want to use them later?

2. In a dynatree, the titles of nodes should be unique or I can
use the same title for different nodes?

Thanks for any suggestions.

mar10

unread,
Jan 15, 2011, 8:24:47 AM1/15/11
to Discuss jquery.dynatree.js
Hi,
all nodes must have a unique key. If you don't assign one during
creation, ' _NNN' is generated.
Titles can be duplicate within a tree without problem.
Martin
Reply all
Reply to author
Forward
0 new messages