>All Tutorials 
Ajax and .NET Ajax and .NET RSS XML
Ajax and ColdFusion Ajax and ColdFusion RSS XML
Ajax and Java Ajax and Java RSS XML
Ajax and PHP Ajax and PHP RSS XML
Ajax and SOA Ajax and SOA RSS XML
Ajax Goodies Ajax Goodies RSS XML
Ajax Tool Ajax Tool RSS XML
Facebook MockAjax Facebook MockAjax RSS XML
Google Web Toolkit Google Web Toolkit RSS XML
JavaScript Framework JavaScript Framework RSS XML
Ruby on Rails Ruby on Rails RSS XML
Technique Introduction Technique Introduction RSS XML
Without XMLHttpRequest Without XMLHttpRequest RSS XML
Yahoo! UI Yahoo! UI RSS XML

Drag and Drop Sortable Lists with JavaScript and CSS - drag list items firefox sortable lists item dragging

 
Registered tutorials: 501
Registered Users: 36759



Rating: 3.52 out of 23 votes cast


  
Category: JavaScript Framework

Drag and Drop Sortable Lists with JavaScript and CSS

Digg this   Post to del.icio.us

Abstract: Examples of dragging and dropping within a list. Demonstrations of how to enable a page to let people use the mouse to reorder lists and move things between them

In Web applications I've seen numerous — and personally implemented a few — ways to rearrange items in a list. All of those were indirect interactions typically involving something like up/down arrows next to each item. The most heinous require server roundtrips for each modification...boo.

Then I came across Simon Cozens' example of rearranging a list via drag & drop. I was so inspired I had to try it out myself.

Example: A Basic List

Essentially Simon Cozen's example with some subtle enhancements. It's not obvious, but go ahead and rearrange the items:

  • one
  • two
  • three

In Firefox you can also drag the bullet to move an item. Keen.

Saving the reorderd list is possible by inspecting the DOM. All the sortable lists on this page retain their order via cookies (try rearranging a list and then reloading the page).


Read Full Tutorial...



Reviews:

Rate and Review This Site

No reviews yet


Statistic Information About this Resource:


Total Hits: 5198
Unique Hits: 4305


  Daily Weekly Monthly
  Unique Total Unique Total Unique Total
Average 1.6 1.6 6.9 7.7 44.8 50.7
Current 2 2 4 4 6 6
Previous 0 0 0 0 57 65
Feb 1 2 2 21 23 43 47
Jan 31 0 0 0 0 48 58
Jan 30 2 2 14 15 67 78
Jan 29 2 2 0 0 59 72
Jan 28 2 2 10 12 51 53
Jan 27 0 0 12 14 68 73
Jan 26 6 6 0 0 49 55
Jan 25 0 0 8 9 0 0
Highest 41 49 173 206 693 833


Script Execution Time: 0.27946 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2