Draggable infos

Draggable infos

Hi all!

I'm sorry if my english isn't very good: I'm a young french developer, so maybe I don't use the rights words.

I need to use the Draggable UI class, but I have some questions:
- I want to use onClick() event to start drag, and an other onClick() event to drop the element...how can I change the onMouseDown() and onMouseUp() set by default ? On the online documentation, I don't see any option to set these events...
- I need to send an Ajax call before the draggable element was dropped. If the result of this call is "0", the drop isn't done (the element stay draggable). How can I prevent this drop? When I return false on the stop() event, nothing appends...maybe there is a method to restart automatically the drag?

I don't use JQuery from long time, so I really need your help.

Thank you!