Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
firing DropTarget's onDragDrop event   Message List  
Reply | Forward Message #30987 of 52117 |
Re: [ydn-javascript] firing DropTarget's onDragDrop event

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



Thu May 15, 2008 4:54 am

wong.tseng
Offline Offline
Send Email Send Email

Forward
Message #30987 of 52117 |
Expand Messages Author Sort by Date

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...
surferdwa
Offline Send Email
May 14, 2008
9:57 pm

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...
Dav Glass
dav.glass
Offline Send Email
May 15, 2008
12:01 am

Every dnd target object has a event called onDragEnter. you can use this event to pinpoint the current target being draged over. ... -- Best Regards Wong Tseng...
WongTseng
wong.tseng
Offline Send Email
May 15, 2008
4:54 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help