Nizmo...
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
nodes/elements.
speed your code up with.
$$('.box').each(function(element) {
new Draggable(element, {ghosting:true})
});
//
HTH
Alex Mcauley
http://www.thevacancymarket.com
----- Original Message -----
From: "nimzo" <[email protected]>
To: "Prototype & script.aculo.us" <[email protected]>
Sent: Thursday, August 13, 2009 9:36 PM
Subject: [Proto-Scripty] How to disable draggables in script.aculo.us
>
> 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
-~----------~----~----~----~------~----~------~--~---