PHP Classes

AJAXed list boxes: Generate AJAXed linked select inputs

Recommend this page to a friend!
  Info   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 41%Total: 3,618 All time: 919 This week: 82Up
Version License PHP version Categories
lsb 0.5GNU General Publi...4.1.0HTML, AJAX


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
  Performance   Level  
Name: Panos Kyriakakis <contact>
Classes: 2 packages by
Country: Greece Greece
Age: 51
All time rank: 3555 in Greece Greece
Week rank: 405 Down4 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  
This week:0
All time:919
This week:82Up
User Ratings User Comments (1)
 All time
use some deprecated methods of both javaScript and PHP.
6 years ago (zinsou A.A.E.Mo´se)