Hi this is my code:
[code]
<script type="text/javascript" language="javascript">

function newItem(){
 $('item').appear();
 new Draggable('item',{revert:false});
 }
function destroyItem(){

        var mydrag = new Draggable('item');
// then destroy it when you don't need it anymore
mydrag.destroy();
$('item').hide();

        }

</script>
[/code]

When I call destroyItem() the draggable item should return to its
original position. Any ideas?
Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.

Reply via email to