Hi All, I''m trying to drag a copy of a string from a list into a text field so that the original string stays in the list. I''m able to drag the item and set the value of the text field onDrop. But the original text leaves the list & with revert set to true it flies back to it''s original position in the list. We''re trying to avoid the flying text. What I''d like to do it drag a copy of the text and onDrop set the value of the text field and have the element disappear. I''ve got the setting of the text field and I''m using Effect.Fade to remove the dragged element, but this removes the original entry from the list. I''m sure there is a way to do this, but I haven''t been able to figure it out. Any ideas?? Thanks in advance!! Linda ;)
Hi ! 2005/10/25, Linda Coleman <lgc@possibility.com>:> I'm trying to drag a copy of a string from a list into a text field so > that the original string stays in the list. I'm able to drag the item > and set the value of the text field onDrop. But the original text leaves > the list & with revert set to true it flies back to it's original > position in the list. We're trying to avoid the flying text.Make sure you're using a very recent copy of scriptaculous, and use set the ghosting parameter to true: new Draggable('id_of_element', {ghosting: true, revert: false}); How recent you ask ? Use one of the new release candidates. Hope that helps ! François _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
I downloaded V1.5_rc3 (2005-10-09) today but that doesn''t seem to do the trick. Is this a recent enough version or do I need something else?? :( The original item in the is still the one dragged. Thanks!!! L:) ** Francois Beausoleil wrote:>Hi ! > >2005/10/25, Linda Coleman <lgc-t/GJC3JDwkCfJOJzLBvvIA@public.gmane.org>: > > >>I''m trying to drag a copy of a string from a list into a text field so >>that the original string stays in the list. I''m able to drag the item >>and set the value of the text field onDrop. But the original text leaves >>the list & with revert set to true it flies back to it''s original >>position in the list. We''re trying to avoid the flying text. >> >> > >Make sure you''re using a very recent copy of scriptaculous, and use >set the ghosting parameter to true: > >new Draggable(''id_of_element'', {ghosting: true, revert: false}); > >How recent you ask ? Use one of the new release candidates. > >Hope that helps ! >François > >_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs