Drag, drop, sort with scriptaculous and PHP 5

Visit Publisher Site

It never has been easier to sort elements or objects on a web page. Use the drag and drop capacities of scriptaculous plus Ajax plus PHP 5 plus MySQL. Onload the create function from scriptaculous is requested. It defines a sortable list and a drop zone. "Sortable.create" transforms an unordered list into a sortable list with draggable items. The event onmouseup takes care for the AJAX part. A XMLHttpRequest is invoked that loops through all li elements to capture the new order of the draggable elements and store it in an array. This is where a PHP class is taking over. It updates the sorting fields in the database table and returns the new order. This script can look after any elements or objects (navigation and so forth), you just have to adapt the return value of the corresponding function in the responsible class (see also readme). To build in this script in your web page a few lines of code will do it.

Visit publisher site: Drag, drop, sort with scriptaculous and PHP 5

Listing Details

Filed in:
Scripts / JavaScript / Scripts & Programs / Miscellaneous
Submitted on:
Last Updated:
Other listings by this publisher

License & Pricing Information

License Type:
$0.00 USD
Additional Info:

User Reviews 

Be the first to review this listing!