Drag and Drop: Handle drag and drop events of page elements

Recommend this page to a friend!
  Info   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 48%Total: 389 All time: 92 This week: 3Up
Version License JavaScript version Categories
drag-drop 1.0.1GNU General Publi...1.0Events
Description Author

This object can handle drag and drop events of page elements.

It can start listening to mouse events on given page elements to track drag and drop movements.

The can call given callback function when the drag starts, moves or stops.

The movements of the dragged elements can be restricted one of the axis, vertical or horizontal.

The movement positions can be snapped to positions of a given spacing distance between the snap points.

Picture of Mark Rolich
  Performance   Level  
Name: Mark Rolich <contact>
Classes: 13 packages by
Country: Armenia Armenia
Age: 42
All time rank: 111 in Armenia Armenia
Week rank: 6 Up1 in Armenia Armenia Equal
Innovation award
Innovation award
Nominee: 6x

Winner: 1x

This Javascript package implements drag-n-drop functionality in a browser. Supports: - Moving an element horizontally, vertically and in both directions - Snap to grid functionality - Limitation of moving distance - Registering of user-defined function on start, move and stop Tested in the following browsers: IE 6.0, FF 17, Chrome 22, Safari 5.1.1 Dragdrop.js requires Event.js package, which can be acquired at the following links: Github - https://github.com/mark-rolich/Event.js JS Classes - http://www.jsclasses.org/package/212-JavaScript-Handle-events-in-a-browser-independent-manner.html Copyright (C) 2012 Mark Rolich
  Files folder image Files  
File Role Description
Accessible without login Plain text file demo.css Data Demo styles
Accessible without login Plain text file demo_advanced.html Data Advanced demo
Accessible without login Plain text file demo_simple.html Data Simple demo
Accessible without login HTML file documentation.html Doc. Documentation
Plain text file Dragdrop.js Class Main function
Accessible without login Image file grid.png Icon background image for advanced demo
Accessible without login Plain text file license.txt Lic. LICENSE
Accessible without login Plain text file README Data README

Downloaddrag-drop-2021-11-14.zip 7KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Event Download .zip .tar.gz for cross-browser event handling Required
 Version Control Reuses Unique User Downloads Download Rankings  
This week:0
All time:92
This week:3Up
 User Ratings  
 All time