Posted by Paul v B
on 11.08.2006 10:02
Hi all,

I want to want to know the coordinates of an element while dragging. For
now i overwrited the endDrag event like this:

endDrag: function() {

   posArr = Position.cumulativeOffset($('elm1'));

   Str += $('elm1').innerHTML + ": "+ getRealPos(posArr[0],posArr[1]);
   $('posval').innerHTML = Str;
}

What i need is this code to execute while dragging an element. So it
will be constantly updating its coordinates.

Is there such a method which supports the ondrag event?

Thnx!