Hi,

A brief glance at the documentation[1] suggests that you should keep a
reference to the Draggables you create and when you don't want
something to be draggable anymore, call the #destroy method on them.

[1] http://wiki.github.com/madrobby/scriptaculous/draggable

HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available


On Aug 13, 9:36 pm, nimzo <[email protected]> wrote:
> Hi-
>
> I'm trying to make a group of objects draggable as you can see below -
> easy enough. But I'd like to configure things so that at the very
> moment any one of these items is dragged, the others automatically
> cease to be draggable. Does anyone know how to do this?
>
>     var products = document.getElementsByClassName('box');
>     for (var i = 0; i < products.length; i++) {
>         new Draggable(products[i].id, {ghosting:true})
>     }
>
> Thanks very much.
--~--~---------~--~----~------------~-------~--~----~
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