Hello,

I thought I had already create a new topic, but I dont see it at the
discussion group.

The issue is as follows,
I am building a site that contains hundred's of dragg- and droppables.
So I decide, that the draggable must be created on the OnMouseDown
(already partially working), and the droppable on the OnMouseDown
event.

Question 1:
I have this code for the draggable:
 function createDrag(id){
        $("#"+id).draggable();
  }
<div id="draggable" onMouseDown="createDrag('draggable');">Drag me</
div>

This is working, but only when I click twice. At the first mouseDown
the draggable is created, but does not follow my cursor. How to solve
this, so that the draggable follows the cursor from the beginning?

Question 2:
How to fire on the OnMouseUp event - when the draggable is dropped - a
function that creates a droppable?
It does not work when I use similar code as for the draggable.

Any idea's?

Thanks in advance

Reply via email to