Forum: Rails Spinoffs (closed, excessive spam) Help with Sortables

Posted by louis w (Guest)
on 2008-06-27 21:20
(Received via mailing list)
I have done this so many times before, I have no idea what the problem
is.

I have a button which calls a method (Foo.startSort) which in tern
instantiates a sortables.

Sortable.create(parent,{tag:'div'});

This works fine, and I can drag around the items. But whenever a
draggable item is over another draggable item my error panel goes
nuts. Here are just some of the errors:

options is undefined
[Break on this error] if (options.tree) {
dragdrop.js (line 934)

Sortable.options(dropon) is undefined
[Break on this error] if(overlap > .33 && overlap < .66 &&
Sortable.options(dropon).tree) {
dragdrop.js (line 755)

sortable is undefined
[Break on this error] if(sortable.overlap == 'horizontal')
dragdrop.js (line 833)

Sortable.options(dropon.parentNode) is undefined
[Break on this error] if(overlap > .33 && overlap < .66 &&
Sortable.options(dropon).tree) {
dragdrop.js (line 755)

Sortable.options(dropon) is undefined
[Break on this error] if(sortable.overlap == 'horizontal')
dragdrop.js (line 833)

this.setDefaultStatus is not a function
[Break on this error] if(sortable.overlap == 'horizontal')
dragdrop.js (line 833)


Any help would be nice. Thanks.
Posted by louis w (Guest)
on 2008-06-30 22:30
(Received via mailing list)
Anyone ever experience this issue?
Is it because I am creating the sortable instance from within another
method?
Posted by louis w (Guest)
on 2008-07-01 00:37
(Received via mailing list)
Hi, duh my parent did not have an id (i was selecting it with .up).
Neverrrmind. Strange it half-worked.
This topic is locked and can not be replied to.