General discussion

Locked

Dynamic dropdown menus

By QTX ·
I am trying to build dynamic dropdown menus with Javascript. There are supposed to be 3 menu boxes. After the 1st one is chosen, the 2nd one is dynamically populated based on the 1st choice, and then the 3rd one is based on the 2nd choide. I know how to do this by hard coding the menu choices. Could someone show me a similar example where the menu choices are pulled from a database table using ColdFusion, please?

Thanks in advance!

Tracy Xia

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by reitzen In reply to Dynamic dropdown menus

http://www.macromedia.com/cfusion/exchange/index.cfm#loc=en_us&view=sn106&viewName=Exchange%20Search%20Details&authorid=7653985&page=0&scrollPos=0&subcatid=0&snid=sn106&itemnumber=1&extid=1000298&catid=0&avm=1

This link will take you to a custom tag that is available on Macromedia's Exchange. I have not used this one but I use the "TwoSelectsRelated" all over my intranet site.

If you have a lot of menu options, this option may be a bit slow for page load and to change the menu options. Another option is to submit a form each time the user makes a selection from a drop down. Reply if you want to try this option and I'll post some sample code.

HTH

Collapse -

by aleco In reply to Dynamic dropdown menus

Hi Tracy!

Take a look on this site: http://www.mattkruse.com/javascript/dynamicoptionlist/
I'm using it and very glad with it.

Alexey.

Back to Web Development Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums