Jump to content

Drag and Drop--coordinates


phpknight

Recommended Posts

Is there any way to drag and drop elements that are not abolutely positioned but just in the normal flow?  For instance, is there a function to see what the element was that a person clicked the mouse or let go on?  I guess I am looking for something like getElementByID but getElementID (mouseCoordinates) that returns the id of the element of the mouse or something.

Link to comment
https://forums.phpfreaks.com/topic/65042-drag-and-drop-coordinates/
Share on other sites

Right.  According to _Javascript: The Definitive Guide_, it says this "allow absolutely positioned elements [in css] to be ragged by the user" (421).  Other sites mention the same thing.  I want to know if I can do this with float and other elements as well. 

 

Therefore, I would probably need functions like what I mentioned above.  Or, can you just change the position to absolute once a user starts dragging and dropping? 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.