Ruby Forum Rails Spinoffs (closed, excessive spam) > [script.aculo.us] disabling and reactivating draggables

Posted by Dennis Schmidt (Guest)
on 10.07.2008 15:55
(Received via mailing list)
Hi there,

Is it somehow possible to deactivate draggables and then after having
done something else, reactivating them? I tried
Draggables.deactivate() but that doesn't seem to work.

Alternatively it would be OK if I knew how to remove the "dragability"
feature from an html element entirely.

Thanks in advance, Dennis
Posted by Justin Perkins (Guest)
on 10.07.2008 16:01
(Received via mailing list)
Have you tried destroying your draggable?

var dragMe = new Draggable('element');
// do stuff
dragMe.destroy();
// if you need to make it draggable again later, you'll have to create
a new Draggable

I've only worked with Sortable, so I might not be the best person to
answer this.

-justin