It seems bizzare to me that you are using Draggables (which relies on 
prototypejs) yet you are still using vanilla JS methods to select dom 

speed your code up with.

$$('.box').each(function(element) {

new Draggable(element, {ghosting:true})



Alex Mcauley
----- Original Message ----- 
From: "nimzo" <>
To: "Prototype &" <>
Sent: Thursday, August 13, 2009 9:36 PM
Subject: [Proto-Scripty] How to disable draggables in

> 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 &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to