# Script.aculo.us Sortable leave copy

**URL:** <https://www.ruby-forum.com/t/script-aculo-us-sortable-leave-copy/88054>\
**Category:** Rails\
**Created:** [March 7, 2007, 7:37pm UTC](https://www.ruby-forum.com/t/script-aculo-us-sortable-leave-copy/88054 "2007-03-07T19:37:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bugfix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f14d63/32.png) [@bugfix](https://www.ruby-forum.com/u/bugfix)\
**Post date:** [March 7, 2007, 7:37pm UTC](https://www.ruby-forum.com/t/script-aculo-us-sortable-leave-copy/88054/1 "2007-03-07T19:37:19Z")

</div>

Is there a way to clone an element, so that it leaves a copy of itself  
from its point of origin when itâ€™s dragged to another sortable list?

Thanks for hints!  
harald

---

<div class="post-metadata">

**Author:** ![bugfix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f14d63/32.png) [@bugfix](https://www.ruby-forum.com/u/bugfix)\
**Post date:** [March 7, 2007, 8:40pm UTC](https://www.ruby-forum.com/t/script-aculo-us-sortable-leave-copy/88054/2 "2007-03-07T20:40:45Z")

</div>

I believe this would be taken care of by setting the ghosting  
parameter to true in the Sortable.create method call. Check here:  
[http://wiki.script.aculo.us/scriptaculous/show/Sortable.create](http://wiki.script.aculo.us/scriptaculous/show/Sortable.create)

Is that what you’re talking about?

Ryan

---

<div class="post-metadata">

**Author:** ![bugfix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f14d63/32.png) [@bugfix](https://www.ruby-forum.com/u/bugfix)\
**Post date:** [November 2, 2007, 8:34am UTC](https://www.ruby-forum.com/t/script-aculo-us-sortable-leave-copy/88054/3 "2007-11-02T08:34:36Z")

</div>

Ah this has been driving me crazy for weeks. I found a forum post  
somewhere that in ruby on rails spinoffs that suggested creating a  
droppable on the element then creating the sortable on top, but I had  
little luck with that method. I’m digging through the code now I’m  
bound and determined to make it work. Has anyone seen another  
framework that can do this?

---

<div class="post-metadata">

**Author:** ![bugfix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f14d63/32.png) [@bugfix](https://www.ruby-forum.com/u/bugfix)\
**Post date:** [October 30, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/script-aculo-us-sortable-leave-copy/88054/4 "2007-10-30T16:30:29Z")

</div>

removed\_email\_address@domain.invalid wrote:

> Is that what you’re talking about?

This isn’t the solution, I think. Ghosting makes a clone, but when the  
drag ends, the clone will disappear. I’m searching for a solution for  
this problem, too, but havn’t an answer yet.  
Pascal
