Greetings everyone, I have been fiddling with the idea of using the experimental sortable tree in scriptaculous 1.6.5 to manage a tree of pages kept in a database. Currently, my ajax call sends the whole serialized tree back to the server. What I would like to do, is just send the relevant information about the change in the tree structure, rather than parsing the whole tree array to determine where a node was moved to... Can anyone think of a way to determine the parent of the node that was just moved (its new parent), or even /which/ node was just moved? The onUpdate callback only passes the root list back... I haven''t done a lot of work with scriptaculous, but I thought this would be a good place to start. If anyone can provide any insight, I would appreciate it. Thanks Etienne Le Sueur --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Having the same problem I would be very interested in such a solution as well. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Use an observer. The onEnd observer accepts the following parameters: (eventName, draggable, event) draggable.element is the element that was dragged. TAG On Dec 3, 2006, at 4:16 AM, Mario wrote:> > Having the same problem I would be very interested in such a solution > as well. > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---