solepixel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Mar-05 23:01 UTC
Using Sortable - getting error: this.observer is not a function
This is my first time using scriptaculous and prototype and i followed
instructions on a website on my first try. It was successful. Now,
I''ve tried to get this to work in my application environment, and the
script will pick-up, drag and move items but when I go to drop them, I
get this error:
this.observer is not a function
Details: in file: dragdrop.js (line 574)
onEnd()dragdrop.js (line 574)
notify(Object element=div#item_list)dragdrop.js (line 209)
(no name)(Object element=div#item_list)prototype.js (line 328)
_each(function())prototype.js (line 541)
each(function())prototype.js (line 326)
notify("onEnd", Object element=div#item_12.item
handle=div#item_12.item, mouseup clientX=0, clientY=0)dragdrop.js
(line 208)
finishDrag(mouseup clientX=0, clientY=0, true)dragdrop.js (line 406)
endDrag(mouseup clientX=0, clientY=0)dragdrop.js (line 438)
endDrag(mouseup clientX=0, clientY=0)dragdrop.js (line 187)
bindAsEventListener(mouseup clientX=0, clientY=0)prototype.js (line
78)
[Break on this error] this.observer(this.element)
If i right click, then left click, the item will drop in the spot your
cursor is over, but my onUpdate function does not occur.
Also, in my first test, i used: Constraint: vertical, however in my
live version, i do not want contraint. The items can be sorted in any
manner, kind of like ->
http://wiki.script.aculo.us/scriptaculous/page/print/SortableFloatsDemo
Any idea what could be causing this?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
solepixel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Mar-08 14:11 UTC
Re: Using Sortable - getting error: this.observer is not a function
I don''t know what I did, but basically started over from scratch and I no longer get this error. Must''ve been an issue of the server not including the file or something... On Mar 5, 5:01 pm, "solepi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <solepi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> This is my first time using scriptaculous and prototype and i followed > instructions on a website on my first try. It was successful. Now, > I''ve tried to get this to work in my application environment, and the > script will pick-up, drag and move items but when I go to drop them, I > get this error: > > this.observer is not a function > > Details: in file: dragdrop.js (line 574) > > onEnd()dragdrop.js (line 574) > notify(Object element=div#item_list)dragdrop.js (line 209) > (no name)(Object element=div#item_list)prototype.js (line 328) > _each(function())prototype.js (line 541) > each(function())prototype.js (line 326) > notify("onEnd", Object element=div#item_12.item > handle=div#item_12.item, mouseup clientX=0, clientY=0)dragdrop.js > (line 208) > finishDrag(mouseup clientX=0, clientY=0, true)dragdrop.js (line 406) > endDrag(mouseup clientX=0, clientY=0)dragdrop.js (line 438) > endDrag(mouseup clientX=0, clientY=0)dragdrop.js (line 187) > bindAsEventListener(mouseup clientX=0, clientY=0)prototype.js (line > 78) > [Break on this error] this.observer(this.element) > > If i right click, then left click, the item will drop in the spot your > cursor is over, but my onUpdate function does not occur. > > Also, in my first test, i used: Constraint: vertical, however in my > live version, i do not want contraint. The items can be sorted in any > manner, kind of like ->http://wiki.script.aculo.us/scriptaculous/page/print/SortableFloatsDemo > > Any idea what could be causing this?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---