By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,947 Members | 1,594 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,947 IT Pros & Developers. It's quick & easy.

three dependent drop down lists without refreshing the page

P: 15
I need to have three drop down lists, but the dependent should get the values from the database without refreshing the page..If knows,someone pls reply soon
Aug 27 '07 #1
Share this Question
Share on Google+
5 Replies


gregerly
Expert 100+
P: 192
I need to have three drop down lists, but the dependent should get the values from the database without refreshing the page..If knows,someone pls reply soon
If I am understanding you correctly, drop down 2 is dependant on what drop down 1 is. If this is the case, you need to use Javascript (AJAX) in conjunction with a server side language for running all your queries.

Greg
Aug 27 '07 #2

10K+
P: 13,264
If I am understanding you correctly, drop down 2 is dependant on what drop down 1 is. If this is the case, you need to use Javascript (AJAX) in conjunction with a server side language for running all your queries.

Greg
Yep, Ajax is the way to go here. The other approach of loading three Javascript arrays when the page loads and playing around with them using javascript also works but is dirtier and does not reflect real time changes of data in the database.
Aug 27 '07 #3

P: 15
F ny one knows a reference to this kind of a problem(i.e dependent drop down lists+ajax)pls reply .thnx
Aug 27 '07 #4

10K+
P: 13,264
F ny one knows a reference to this kind of a problem(i.e dependent drop down lists+ajax)pls reply .thnx
You've already been pointed in the right direction. any Ajax tutorial will show you how it's done. All it takes is a little bit of reading*. If you get stuck with some code then you can post in the Javascript/Ajax forum

*reading - an extinct art which students used to obtain information.
Aug 27 '07 #5

pbmods
Expert 5K+
P: 5,821
Heya, Rodeoval.

Hop on over to our search page and search for 'dependent drop down' in our JavaScript forum. There's over a dozen threads that have exactly what you're looking for ~_^
Aug 28 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.