SiteExperts.com Logo Home | Community | Developer's Paradise | Jobs
User Groups | Site Tools | Site Information | Search

Inside Technique : Adding Drag and Drop : Reference

Below are the list of extensions available when using the Drag-Drop Framework.

Global Properties

elDragged
When a drag-drop operation is in process, this property returns the element being dragged. Returns null at all other times.

Drag Source

dragEnabled
This attribute specifies the element is a drag-source. Only absolute positioned elements can be a drag source.
dropTarget
This is a comma delimited list of elements that can act as a valid drop target for the element. No extra spaces may be specified in this list. This list is used to determine what target events are fired.
onTarget
Contains code to execute if the element is dropped on a valid drop-target.
onNoTarget
Contains code to execute if the element is not dropped on a valid drop-target.

Drop Target

onDropTarget
Contains code that executes if a valid element is dropped onto the target
onOverTarget
Contains code that executes if a valid drag-source enters into the drop-target.
onOutTarget
Contains code that executes if a valid drag-source exits the drop-target.

On the last page, you will find the complete source code for the drag-drop framework.