Get the coordinates of a drop event in Javascript?

Posted by Sebastián Grignoli on Stack Overflow See other posts from Stack Overflow or by Sebastián Grignoli
Published on 2010-04-29T02:05:10Z Indexed on 2010/04/29 5:17 UTC
Read the original article Hit count: 341

I made a javascript library that lets me drag a marker from a dragzone to one or more dropzones.

The problem is... the mouseup event happens over the marker I'm dragging, no te dropzone.

How can I detect in wich dropzone was the marker dropped, and in wich coordinates?

Here's my script:

http://dl.dropbox.com/u/186012/demos/dragger/drag.html

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about drag