Thanks Marcus,
Looks good
Will give that a try!
On Apr 20, 7:59 am, Marcus Schwarz msspamf...@gmx.de wrote:
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---