I was looking at Scriptaculous for it''s sortable functionality. The page I am putting together has a list of sections that I would like to add to a table for display purposes. I''m thinking I need a ''clone'' element feature. Is this available? Generally, the page looks like this: * section one * section two * section three * section four --------------------------------------------------------------------- | * section one | --------------------------------------------------------------------- | * section one | * section two | --------------------------------------------------------------------- | * section three | * section four | --------------------------------------------------------------------- You should be able to drag the sections into any one (or more) of the table cells. ...does this make sense. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Damiro a écrit :> You should be able to drag the sections into any one (or more) of the > table cells.It''s not Sortable you need. Sortable is there to sort a given contents! What you need is regular drag/drop features, using new Draggable and Droppables.add. You can then react to onDrop by copying the element to the cell (e.g. using cloneNode(true)) and making it Draggable again. If you need to be able to take them out, you would need a "trashcan" drop location where elements in the cells could be dropped for removal (do *not* forget to unregister them as draggables before, if possible). See the shopping cart example for a demo closer to your needs. -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---