in draggable there is a parameter "handle" witch if i recall correctly takes
a classname...
SO add a classname to each image of the same name (<img class="drag-me" ...
/> <img class="drag-me" .... /> ....)
In your draggable code
new Draggable('containerDiv),{
handle:'.drag-me'
// other options
}); //
untested but i dont see why not
Alex Mcauley
http://www.thevacancymarket.com
----- Original Message -----
From: "wonderpix" <[email protected]>
To: "Prototype & script.aculo.us" <[email protected]>
Sent: Saturday, December 19, 2009 1:17 AM
Subject: [Proto-Scripty] sortable
> Hi
>
> Maybe this is a simple task, or maybe it is an impossible one, I dont
> know. But here it goes:
>
> Assume you have
>
> <div id="containerDiv">
> <div id="div_1"><img src="arrow.gif" ><a href="page.html">page</a></
> div>
> <div id="div_1"><img src="arrow.gif" ><a href="page.html">page</a></
> div>
> <div id="div_1"><img src="arrow.gif" ><a href="page.html">page</a></
> div>
> </div>
>
> I want the img tag to be the only draggable element. So when you are
> with the mouse over the image, it will be possibile to drag. But then
> ALL THE DIV should be dragged. Is that clear?
>
> I dont know how to do this. If I add the option tag: img to Sortable,
> it doesnt help. I then tried also to give the images an id, like
> img_1, img_2 and so on. Is this possible to solve?
>
> --
>
> 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.
>
>
>
--
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.