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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Anyone ever experience this issue? Is it because I am creating the sortable instance from within another method? On Jun 27, 3:19 pm, louis w <louiswa...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, duh my parent did not have an id (i was selecting it with .up). Neverrrmind. Strange it half-worked. On Jun 30, 4:30 pm, louis w <louiswa...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Anyone ever experience this issue? > Is it because I am creating the sortable instance from within another > method? > > On Jun 27, 3:19 pm, louis w <louiswa...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---