Hi Mats,
my solution to this problem was the following:
<a id="foo" href="foo" onclick="checkLink(this)">bar</a>
The draggable is extended with onStart and onEnd-Handlers:
new Draggable('foo', {onStart:x1 onEnd:x2});
x1: onStart: function(e) {Global.DRAGGING = true;}
x2: onEnd: function(e) {Global.DRAGGING = false;}
And finally:
checkLink(e) {
if (Global.DRAGGING == true) return false;
return true;
}
HTH
Marcus
Mats schrieb:
> I've created a draggable from an a-href. When it is dropped it also
> opens the link as if the link was clicked. This does not happen if I
> drag the link before making it draggable.
>
> I want to link to open when clicked but not when dragged to my
> proppable div. How?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---