PHP Classes

Cascade Drop Down: Generate form select inputs with dependent options

Recommend this page to a friend!
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 68%Total: 3,767 All time: 871 This week: 123Up
Version License Categories
jsdd 1.0GNU General Publi...HTML, Databases
Description 

Author

Purpose: Generate two dependent HTML form select inputs

The Basic requirement for me to write a class of this kind is to avoid the page reloading time, when the currently selected value on the first dropdown determine the option values that are made available on the second dropdown.

When the page needs to be reloaded it is not pleasant for the users to wait until the page reload is complete, especially when their Internet to the server is slow.

So what this class does is to generate Javascript code dynamically by fetching the select input option values from a database table and switch them when the user changes the parent select input.

The class has two basic functions where one is responsible for querying the database and other is responsible for generating the Javascript code.

There is also a function which is responsible for generating the HTML code for the select input.

Picture of Gobinath Mallaiyan
Name: Gobinath Mallaiyan <contact>
Classes: 11 packages by
Country: United States United States

  Files folder image Files  
File Role Description
Files folder imagedata (1 file)
Files folder imagedocs (1 file)
Files folder imageenhanced (2 files)
Plain text file JSDropDown.class.php Class Source Class
Accessible without login Plain text file JSDropDown.php Example Script Which Uses the Class

  Files folder image Files  /  data  
File Role Description
  Accessible without login Plain text file JSDropDown.sql Data Data Structure

  Files folder image Files  /  docs  
File Role Description
  Accessible without login HTML file Manual.htm Doc. Referance Manual

  Files folder image Files  /  enhanced  
File Role Description
  Plain text file JSDropDown5.class.php Class Class is Compatible with PHP 5
  Plain text file JSSelect.class.php Class File to Use this class for Dynamic Select Box Creation

 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,767
This week:0
All time:871
This week:123Up
 User Ratings  
 
 All time
Utility:90%StarStarStarStarStar
Consistency:85%StarStarStarStarStar
Documentation:70%StarStarStarStar
Examples:80%StarStarStarStarStar
Tests:-
Videos:-
Overall:68%StarStarStarStar
Rank:391