dragEnd function

May 22, 2009 at 7:01 PM

I was curious if you had any documentation on the dragEnd function - do you know what sort of object is being passed after it is done?  Are you able to get the object type of what you dropped?  Or perhaps can you find what list the object came from?

I put this in my code:

dragEnd: function() { alert( this.name);

and all that seemed to happen was it alerted the containing ASP panel that holds ALL the ULs.


Any thoughts?  Thanks.

Jun 25, 2009 at 8:43 PM
Edited Jun 25, 2009 at 8:45 PM

Sure, I actually got contacted by someome with this suggestion, so will look at releasing a version with this change implemented. Basically in the dropItem function make these changes:

list.draggedItem.css({ position: "", top: "", left: "", opacity: "" });
list.draggedItem = null;


list.draggedItem = null;

Now the this keyword in you dragEnd handler will refer to the listitem that is being dragged.

Jun 25, 2009 at 11:49 PM

thx for the fast reply. helped a lot!

Sep 8, 2009 at 7:51 PM


I just wanted to say thanks for the update and the reply - I was looking for an email and never got one saying it updated....glad I checked again and got the code. 

Great plugin!!