Dennis Schmidt
2008-Jul-10 13:54 UTC
[script.aculo.us] disabling and reactivating draggables
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Justin Perkins
2008-Jul-10 14:00 UTC
Re: [script.aculo.us] disabling and reactivating draggables
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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---