Login   Register  
PHP Classes

Moving List: Create select inputs and move items between them

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Setec Astronomy
Name: Setec Astronomy <e-mail contact>
Packages: 20 Browse all classes by Setec Astronomy Browse all classes by
Country: Italy Italy - PHP jobs in Italy
Age: ???
All time rank: 141 in Italy Italy
Week rank: 32 Down1 in Italy Italy Equal
Innovation award
Innovation award
Nominee: 5x

  Detailed description   Download Download .zip .tar.gz  
This class is meant to assist in the creation of forms with pairs of multiple select inputs with buttons to move options between each of the select inputs.

This is useful to manage lists of values that are made of a limited set of known options.

The class does not generate the form inputs. It just generates the necessary Javascript code to associate to onclick events of form buttons that remove options from one select input and add them to the other.

  Classes of Setec Astronomy  >  Moving List  >  Download Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Moving List
Base name: cmovinglist
Description: Create select inputs and move items between them
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 2212 users
All time rank: 1626
Week users: 0 users
Week rank: 2463 Equal
  Groups   Rate classes User ratings   Applications   Files Files  

Group folder image Content management Components and tools to manage content View top rated classes

  Innovation Award  
PHP Programming Innovation award nominee
March 2004
Number 4

Prize: One copy of the Zend Studio by Zend
Some times Web developers have solve the problem of building a list made of items that exist on another list.

For instance, if you want to classify an article for publication that may belong to multiple categories, once you associate the article to a given category, the category will move from the list of possible categories to the list of categories already associated with the article. If you want to remove the association of an article with a category, the opposite list movement needs to be executed.

The problem of implementing movements of items between two lists in a Web application is that the Web controls provided by common HTML forms do not provide an easy way to implement this kind of dynamic user interface manipulation.

The solution provided by this class is to generate Javascript code that can move items between two lists defined with multiple select inputs. The generated Javascript code can be associated to the onclick events of additional control buttons.

Although this solution could be implemented without the need to resort to Javascript, it would require additional form submissions to update the state of the lists, thus making the Web forms less usable.

Manuel Lemos

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Good (88.6%) Sufficient (77.3%) - Good (84.1%) - - Sufficient (60.5%) 847
Month: Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file CMovingList.php Class Class file
Accessible without login Plain text file sample.php Example Sample script

Download Download all files: cmovinglist.tar.gz cmovinglist.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.