| Page 1 of 1 | [ 3 posts ] |
|
If a draggable object contains an <a>-tag one can't start dragging the object on the area occupied by the anchor.
Is there a simple way around this ? |
|
By default DD will not drag an Anchor, but you can use the removeInvalidHandleType method on the DD instance to remove the A as an invalid handle.
http://developer.yahoo.com/yui/docs/YAH ... HandleType Code: var dd = new YAHOO.util.DD(); dd.removeInvalidHandleType('a'); That should take care of it.. |
|
Thanks for quick reply
That works so far but unfortunately it also executes the href immediately which isn't quiet what i would expect. If the mouse is released after a drag operation it shouldn't resolve to a click for the a-tag. Would that be possible? |
| Page 1 of 1 | [ 3 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group