PHP Classes

AJAXed list boxes: Generate AJAXed linked select inputs

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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,527 All time: 897 This week: 1,102Down
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: 1015 Down6 in Greece Greece Down

  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,527All time:897
 This week:0This week:1,102Down
 User Ratings  
 All time