fast fixes in 0.9.9a for jQuery 1.4.1 (for urgent use only!)

10 views
Skip to first unread message

Genius

unread,
Feb 7, 2010, 11:50:01 AM2/7/10
to jsTree
As many others I really need to use jsTree and jQuery 1.4.1 right now
in my project.
Google did not help me in searching of these tips that I will provide
below:

to allow drag-n-drop, context menu, double-click features change
all .live() calls to .bind(). This is an example:

Line 449: .live("mousedown.jstree", function (event) {

change to

.bind("mousedown.jstree", function (event) {

This makes the drag-n-drop feature work. The only disadvantage of this
is that the new items added to your treeview will not be draggable/
double-clickable/etc..

Hope this fix will help.

If you have other tips how to make 0.9.9 compatible with jQuery 1.4.1
while jsTree 1.0 is still not released, please write below.

Thanks

John Arrowwood

unread,
Feb 7, 2010, 4:21:35 PM2/7/10
to jst...@googlegroups.com
That doesn't sound right to me.  Why is .live() not working? 


--
You received this message because you are subscribed to the Google Groups "jsTree" group.
To post to this group, send email to jst...@googlegroups.com.
To unsubscribe from this group, send email to jstree+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jstree?hl=en.




--
John Arrowwood
John (at) Irie (dash) Inc (dot) com
John (at) Arrowwood Photography (dot) com
John (at) Hanlons Razor (dot) com
--
http://www.irie-inc.com/
http://arrowwood.blogspot.com/

Genius

unread,
Feb 7, 2010, 5:14:21 PM2/7/10
to jsTree
I have no idea why, but it works for me. I just shared a success of my
fight with this plugin ;)

John Arrowwood

unread,
Feb 7, 2010, 5:15:52 PM2/7/10
to jst...@googlegroups.com
Your problem may have nothing to do with the plugin.  .live() uses event delegation.  If you have something between the tree and the document root that is capturing events, then that is the source of your problem.

I would look there before I change .live() to .bind().

On Sun, Feb 7, 2010 at 2:14 PM, Genius <hwndm...@gmail.com> wrote:
I have no idea why, but it works for me. I just shared a success of my
fight with this plugin ;)
--
You received this message because you are subscribed to the Google Groups "jsTree" group.
To post to this group, send email to jst...@googlegroups.com.
To unsubscribe from this group, send email to jstree+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jstree?hl=en.

Genius

unread,
Feb 7, 2010, 5:19:14 PM2/7/10
to jsTree
Ok.
try it locally and let me know how it is goin. I'm interesting too,
'coz I still see some errors with drag-n-drop feature (when I perform
many moves with ajax-calls)
Reply all
Reply to author
Forward
0 new messages