Hi,
Working on a drag and drop feature and I would like to know/have an opinion on how you can tell if an element, in this case a div tag, is position (via the drag) over another element?
Thanks, R.
Hi,
Working on a drag and drop feature and I would like to know/have an opinion on how you can tell if an element, in this case a div tag, is position (via the drag) over another element?
Thanks, R.
Are you writing straight Javascript, or using an external library that already implements drag-n-drop, like Scriptaculous?
You should look into a framework such as jQuery to handle things like this easily, however if you want to learn exactly how it works, Quirksmode has a good tutorial on drag and drop (probably more information then you want).