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?
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
> --
>
> 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
> prototype-s...@googlegroups.com.
> To unsubscribe from this group, send email to
> prototype-scripta...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/prototype-scriptaculous?hl=en.
>
>
>
handle:'drag-me'
Walter
Been a while since i used Draggable
Alex Mcauley
http://www.thevacancymarket.com
----- Original Message -----
On 19 Dec, 15:38, "Alex McAuley" <webmas...@thecarmarketplace.com>
wrote:
> Ta!! ..
>
> Been a while since i used Draggable
>
> Alex Mcauleyhttp://www.thevacancymarket.com