Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Dropdowns Qs

Status
Not open for further replies.

maxyboy

Programmer
Jan 31, 2002
3
GB
I have a form with a number of textboxes and then 3 dropdowns: Office, Department and Sub-Department. The data for these dropdowns is held in 3 database tables. When the user first enters the form, Office is populated, but not the other 2. On selecting an Office I need the department dropdown to be filled with departments for the chosen office. The same needs to happen to the Sub-department dropdown when a department is chosen. Phew.

What is the best way to do this? Should I try and get all the data in one go and use client side script to do the filtering or should I submit the form each time meaning more trips to the server (and database)

matt
 
If the user will be going through the process one or two
times a session it is best to use server side code.
If the user is using the process alot in any particular session use client side code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top