I am trying to create a screen like Google''s personalized home pages or start.com, i.e., with draggable sections, with the extra feature that the child items under the parent headings could be dragged and dropped from one parent heading to another. I have set up nested droppable sortables (dropOnEmpty=true) but the behavior is very inconsistent, i.e, parents do not become droppable until they have been moved to the top of their containers and/or a child is dragged onto another parent from another sortable. Has anyone got something like this working?
Hi Douglas, isn't what you are asking the same as the sortable lists demo? I encountered that I was not able to do it right until I used the latest version of the libraries (i.e., had to ditch the default rails ones) Victor On 12/5/05, Douglas Forrest <dforrest@optonline.net> wrote:> I am trying to create a screen like Google's personalized home pages or > start.com, i.e., with draggable sections, with the extra feature that > the child items under the parent headings could be dragged and dropped > from one parent heading to another. > > I have set up nested droppable sortables (dropOnEmpty=true) but the > behavior is very inconsistent, i.e, parents do not become droppable > until they have been moved to the top of their containers and/or a child > is dragged onto another parent from another sortable. > > Has anyone got something like this working? > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >-- Victor Jalencas <Victor.Jalencas@gmail.com> _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Not exactly. With respect to that demo, imagine that: Items in list 2 could be sorted within list 2 but not dragged to list 1; List 1 items could only be dropped within list 1 or onto a list 2 item; List 1 items which were dropped onto a List 2 item could be sorted with other list 1 items within that list 2 item; List 1 items which had been dropped on a list 2 item could also be dragged from that list 2 item onto another list 2 item. I''ve now gotten it working -- it was basically a matter of getting the containments correct: The list 2 container element is created with the default containment "Only within container" option. Each list 2 item, which is now in itself a container, is created witrh all the other list 2 items and the List 1 container as the containment options. The list 1 container''s containment options are also set to itself and all the individual List 2 items; Thanks for the prompt response. rails-spinoffs-request-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org wrote: Subject: Re: [Rails-spinoffs] Multi-level drag and drop in scriptaculous? From: victor jalencas Date: Mon, 05 Dec 2005 11:59:25 +0100 To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Hi Douglas, isn''t what you are asking the same as the sortable lists demo? I encountered that I was not able to do it right until I used the latest version of the libraries (i.e., had to ditch the default rails ones) Victor On 12/5/05, Douglas Forrest wrote: I am trying to create a screen like Google''s personalized home pages or start.com, i.e., with draggable sections, with the extra feature that the child items under the parent headings could be dragged and dropped from one parent heading to another. I have set up nested droppable sortables (dropOnEmpty=true) but the behavior is very inconsistent, i.e, parents do not become droppable until they have been moved to the top of their containers and/or a child is dragged onto another parent from another sortable. Has anyone got something like this working? _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs -- Victor Jalencas _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Sorry about sending html -- here it is in plain text: Not exactly. With respect to that demo, imagine that: Items in list 2 could be sorted within list 2 but not dragged to list 1; List 1 items could only be dropped within list 1 or onto a list 2 item; List 1 items which were dropped onto a List 2 item could be sorted with other list 1 items within that list 2 item; List 1 items which had been dropped on a list 2 item could also be dragged from that list 2 item onto another list 2 item. I''ve now gotten it working -- it was basically a matter of getting the containments correct: The list 2 container element is created with the default containment "Only within container" option. Each list 2 item, which is now in itself a container, is created witrh all the other list 2 items and the List 1 container as the containment options. The list 1 container''s containment options are also set to itself and all the individual List 2 items; Thanks for the prompt response.