Creating sortable lists with PHP and AJAX
Quentin Zervaas over at phpRiot() has posted a tutorial on creating sortable lists with PHP and AJAX.
You might have been in a situation before where you had a list of items in your database that needed to be output in a specific order. These items could be anything: perhaps a listing of your favourite movies or your favourite books. For whatever reason, you want them ordered in a custom way that can’t be determined automatically (such as alphabetical).
This article covers the implementation of a system that lets you easily define the order of such a list.
Traditionally, implementations of such functionality involve you clicking a “move up”, “move down”, “move to top”, or “move to bottom” button that switches the order the items (one item at a time). Or perhaps each item has a text box with a number in it, that by changing the numbers you can change the order of the list.
About this entry
You’re currently reading “Creating sortable lists with PHP and AJAX,” an entry on Ajax Lessons

- 2.25.06 / 2am

No comments
Jump to comment form | comments rss [?] | trackback uri [?]