News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

phpRiot.com:
Creating sortable lists with PHP and AJAX
February 24, 2006 @ 13:17:49

On phpRiot today, they've posted a new tutorial showing how to create sortable lists with Ajax and PHP.

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.

They use the example of a movie listing to fill out the data items. They show you both sides of the setup - using Prototype and Scriptaculous to create effects/handle the Ajax, PHP to interface with the database, and a little CSS to make it all look nice. The end result is a list that saves its status from page load to page load, and can be modified just a simple click and drag.

0 comments voice your opinion now!
ajax sortable lists prototype scriptaculous movie list ajax sortable lists prototype scriptaculous movie list


blog comments powered by Disqus

Similar Posts

NETTUTS.com: Building a 5 Star Rating System with jQuery, AJAX and PHP

Community News: Senza Limiti Acquires Ajax-based PHP Grid, Plans to Open Source It

Daniel Hofstetter's Blog: How to update multiple divs with Ajax

David Dudok de Wit's Blog: Creating SharePoint list items with PHP

Nessa's Blog: Which Programming Language is For You?


Community Events





Don't see your event here?
Let us know!


series community unittest symfony release language update opinion laravel introduction zendserver interview library package deployment api tips install framework podcast

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework