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    
Last Updated Ratings Unique User Downloads Download Rankings
2007-03-29 (11 years ago) RSS 2.0 feedStarStarStarStar 68%Total: 3,756 All time: 856 This week: 363Up
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.

Name: Gobinath Mallaiyan <contact>
Classes: 11 packages by
Country: United States United States
Age: 38
All time rank: 445 in United States United States
Week rank: 368 Down40 in United States United States Down

  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  
This week:0
All time:856
This week:363Up
 User Ratings  
 All time