[ciapug] Two dynamic drop downs

Dave J. Hala Jr. ciapug@cialug.org
Wed, 27 Oct 2004 15:07:52 -0500


I've been really interested in doing this with php and java too.
I just haven't had the time to work on it..

Anyone got any code laying around?

On Wed, 2004-10-27 at 14:41, David Champion wrote:
> Chris Hettinger wrote:
> 
> > Perhaps someone has a solution to this,
> > 
> > In a web form I have two drop downs that I need to build dynamically. 
> > The first drop down is a main category and the second drop down box is 
> > populated with appropriate options once the first drop down selection 
> > has been made.
> > 
> > This has to be done with some melding of JavaScript and PHP, but I 
> > haven't found the best way to solve this yet.
> > 
> > Just curious if anyone else had done something similar and could let me 
> > of a good JS script to use or psuedo code of how they solved it.
> > 
> 
> Barry recently did some javascript voodoo on the iowarealty.com web site 
> to do rotating images... the PHP code builds a Javascript array, which 
> loops thru the images. You could probably do something similar - load a 
> javascript array, and in your onchange for the first control, have it 
> load the second one from the array.
> 
> -dc
> 
> 
> _______________________________________________
> ciapug mailing list
> ciapug@cialug.org
> http://cialug.org/mailman/listinfo/ciapug
-- 

Open Source Information Systems (OSIS)
Dave J. Hala Jr. <dave@osis.us>
641.485.1606