Hello all, I have been trying to deal with nested lists and drag/drop functionality. Basically I am doing a simple tree, and I want to be able to drag one node to another node. After reading the doc at: http://wiki.script.aculo.us/scriptaculous/ show/Droppables.add I saw the note about adding dropables in reverse order. But I was wondering if I could get some clarification on that. Lets say that I have the following tree (of droppables): Food \-> Fruits \-> Strawberries \-> Vegetables \-> Turnip \-> Lettuce \-> Boston \-> Iceberg \-> Meats \-> Poultry \-> Chicken \-> Duck \-> Fish \-> Salmon What order would I need to add these droppables to my list in order to get the desired droppable behavior? My guess would be as follows: Salmon Fish Duck Chicken Poultry Meats Iceberg Boston Lettuce Turnip Vegetables Strawberries Fruits Food This works if I am only dragging a node up in the tree, but if I try to move a node downward, I run into issues. If I reverse my ordering from how I have it presently, it allows me to drag down in my tree, but not upward. Did I miss something vital? If you need to see my code in action, let me know, I can post it live as a demo at some point today. If you have a hunch though, I would love to hear it. In the meantime I have heard the Yahoo! UI has tree handling, and (based on opinions of course) better drag and drop functionality. I may just try and check that out while wait. Thanks a ton all. -Greg --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
The last time I played with drag and drop on a nested tree, I ran into a bunch of bugs. Please let me know what you use for your final solution cause I''ll probably take the same route. Andrew On 11/29/06, Greg Militello <junk-I5hbk0M9kNPR7s880joybQ@public.gmane.org> wrote:> Hello all, > > I have been trying to deal with nested lists and drag/drop functionality. > > Basically I am doing a simple tree, and I want to be able to drag one node > to another node. > > After reading the doc at: > http://wiki.script.aculo.us/scriptaculous/show/Droppables.add > I saw the note about adding dropables in reverse order. But I was > wondering if I could get some clarification on that. > > > Lets say that I have the following tree (of droppables): > > Food > \-> Fruits > \-> Strawberries > \-> Vegetables > \-> Turnip > \-> Lettuce > \-> Boston > \-> Iceberg > \-> Meats > \-> Poultry > \-> Chicken > \-> Duck > \-> Fish > \-> Salmon > > What order would I need to add these droppables to my list in order to get > the desired droppable behavior? My guess would be as follows: > > Salmon > Fish > Duck > Chicken > Poultry > Meats > Iceberg > Boston > Lettuce > Turnip > Vegetables > Strawberries > Fruits > Food > > This works if I am only dragging a node up in the tree, but if I try to move > a node downward, I run into issues. If I reverse my ordering from how I > have it presently, it allows me to drag down in my tree, but not upward. > > Did I miss something vital? > > If you need to see my code in action, let me know, I can post it live as a > demo at some point today. If you have a hunch though, I would love to hear > it. In the meantime I have heard the Yahoo! UI has tree handling, and > (based on opinions of course) better drag and drop functionality. I may > just try and check that out while wait. > > > Thanks a ton all. > > -Greg > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
> I have been trying to deal with nested lists and drag/drop > functionality Basically I am doing a simple tree, and I want > to be able to drag one node to another node.Me too. In particular I want to support both drop-on and drop-between. Scriptaculous is pretty poor at DnD, but it shouldn''t be too hard to fix. I naturally assumed that others here would have similar concerns, so I posted a long message here a week ago about my progress in fixing it, which was met with almost complete silence - only Ryan answered and he pointed me to an old hack that didn''t answer my issues. ATM I wonder if I''ll even bother completing my fixes. If the community doesn''t care enough to offer encouragement or answer requests for suggestions then I''m left wondering whether I should find another toolkit. Folk, we''re competing with ASP.net solutions like Telerik, DevExpress and Atlas here. If you want lightweight open solutions to triumph you simply have to aggressively address any completeness and quality issues. Clifford Heath. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---