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 <[EMAIL PROTECTED]> 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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to