Every dnd target object has a event called onDragEnter. you can use
this event to pinpoint the current target being draged over.
2008/5/15, Dav Glass <dav.glass@...>:
> David --
>
> In the current version of DragDrop all event's are fired from the draggable
> element.
>
> In YUI 3.x, I am re-engineering DragDrop to better suite this use-case.
>
> Dav
>
> Dav Glass
> dav.glass@...
> blog.davglass.com
>
>
>
>
> + Windows: n. - The most successful computer virus, ever. +
> + A computer without a Microsoft operating system is like a dog
> without bricks tied to its head +
> + A Microsoft Certified Systems Engineer is to computing what a
> McDonalds Certified Food Specialist is to fine cuisine +
>
>
> ----- Original Message ----
> From: surferdwa <surferdwa@...>
> To: ydn-javascript@yahoogroups.com
> Sent: Wednesday, May 14, 2008 2:57:02 PM
> Subject: [ydn-javascript] firing DropTarget's onDragDrop event
>
> I have many drop targets on a single page, all of which have different
> actions associated with
> dropping an object on them. Currently, however, the onDragDrop event only
> fires for the
> object being dragged, not the dropTarget, so I have a long list if if/else
> statement in the
> drag elements checking on the ids returned for the dropTargets, and then
> executing code
> based on the id.
>
> This solution is less than ideal for a lot of reasons, so I was hoping
> someone could point me
> in the direction to get things turned around where the dropTarget's
> onDragDrop actually
> fires and so the drag elements don't have the if/else block.
>
> Thanks,
> David
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>
--
Best Regards
Wong Tseng