Login   Register  
PHP Classes
elePHPant
Icontem

AJAXed list boxes: Generate AJAXed linked select inputs

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-04-22 (5 years ago) RSS 2.0 feedStarStarStar 43%Total: 3,521 All time: 890 This week: 1,559Down
Version License PHP version Categories  
lsb 0.5GNU General Public Lice...4.1.0HTML, AJAX
Description Author  

This package can be used to generate Web form with linked select inputs.
It generates select inputs that switch their group of options dynamically when the linked select input value is changed.
The class uses AJAX to retrieve the new group of options from the server, so it can retrieve the option values from a database on the server side.
It can link an unlimited number of select inputs.

In the same file sc_classes.php there is an other class. Called sc_form_elements. Used partialy from sc_ajax_select_boxes. It is a nice form helper class. Adds select boxes, radio groups and check box groups. It is usual to have options on db and have to populate with them select boxes, or show a list of radio buttons or a list of checkboxes. The routine is to query the database and loop throu the selected rows and add elements to the form. sc_form_elements class comes to save time rewriting that peace of code again and again, but still have control over the form.

Picture of Panos Kyriakakis
Name: Panos Kyriakakis <contact>
Classes: 2 packages by
Country: Greece Greece
Age: 42
All time rank: 3395 in Greece Greece
Week rank: 485 Down3 in Greece Greece Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file db_sample_data.sql Data Example data file
Accessible without login Plain text file example.php Example Example file
Accessible without login Plain text file example_2.php Example Example for new extra where feature
Accessible without login Plain text file example_5.php Example Use last select box's onChange event to get values for further use
Accessible without login Plain text file example_7.php Example Radio buttons example
Accessible without login Plain text file lsd_demo_2_sample_data.sql Data Sample data for example 2
Plain text file sc_classes.php Class Main class file
Accessible without login Plain text file sc_select_ajax_handler.php Appl. Ajax handling functions
Accessible without login Plain text file top_script.php Aux. Example file

 Version Control Unique User Downloads Download Rankings  
 0%Total:3,521All time:890
 This week:0This week:1,559Down
 User Ratings  
 
 All time
Utility:62%StarStarStarStar
Consistency:62%StarStarStarStar
Documentation:-
Examples:58%StarStarStar
Tests:-
Videos:-
Overall:43%StarStarStar
Rank:2033