Login   Register  
PHP Classes
elePHPant
Icontem

Linked Select

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

  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: 106 Down5 in Italy Italy Down
Innovation award
Innovation award
Nominee: 5x


  Detailed description   Download .zip .tar.gz  
This class is meant to create dynamically linked list with form select inputs that work as controls for choosing master and detail options.

The class takes the definitions of lists options for primary select input and the corresponding options that should be made available in the secondary input is selected.

The class generates the HTML for defining both the form input as well the necessary Javascript code to dynamically switch the set options of the secondary input depending on the option of the primary input that is selected.

  Classes of Setec Astronomy  >  Linked Select  >  Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Linked Select
Base name: clinkedselect
Description: Create dynamically linked lists with select inputs
Version: -
PHP version: 3
License: GNU General Public License (GPL)
All time users: 2728 users
All time rank: 1222
Week users: 1 user
Week rank: 2089 Down
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image HTML HTML generation and processing View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
March 2004
Number 7
Sometimes it is necessary to let the users of a Web application make several choices of multiple options, each choice depending on the previous.

Choices of multiple options can be implemented in Web applications with form select inputs. However, if you want to make a second choice control that depends on what was chosen in the first, you need to update the second select input with a different set of options depending on the first option.

The solution to implement this kind of dynamic control of options provided by this class is to generate the necessary Javascript that makes the second select input load a new set of options when the first select input change its currently selected option.

This type of user interface manipulation could be implemented without the need to resort to Javascript, by using additional buttons that the user would have to use every time he changes the first select input, so the server could load an update form with a different set of options in the second select input. However this approach would make the forms less usable than when using the solution provided by this class.

Manuel Lemos

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (81.8%)
Sufficient (72.7%)
-
Sufficient (70.5%)
-
-
Not sure (55.2%)
1158
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 CLinkedSelect.php Class Main class
Accessible without login Plain text file sample.php Example Example script

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