Login   Register  
PHP Classes
elePHPant
Icontem

Cascade Drop Down: Generate form select inputs with dependent options

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 (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-03-29 (7 years ago) RSS 2.0 feedStarStarStarStar 68%Total: 3,727 This week: 1All time: 819 This week: 1,534Down
Version License Categories  
jsdd 1.0GNU General Public Lice...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
Age: 34
All time rank: 435 in United States United States
Week rank: 332 Down34 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  
 0%Total:3,727All time:819
 This week:1This week:1,534Down
 User Ratings  
 
 All time
Utility:90%StarStarStarStarStar
Consistency:85%StarStarStarStarStar
Documentation:70%StarStarStarStar
Examples:80%StarStarStarStarStar
Tests:-
Videos:-
Overall:68%StarStarStarStar
Rank:294