Reply LinkBack Thread Tools Search this Thread
Old 22-07-2005, 07:02   #1 (permalink)
datahound
Spare Parts
 
datahound's Avatar
 
Join Date: Jan 2005
Location: Bracknell Forest
Posts: 5,110
Javascript controlling menu dropdown contents

Hello,

Can anyone tell me how to solve this problem?

I have a list of customers, and a list of contacts each of which is associated with a customer. When the visitor selects a customer from dropdown A I want dropdown B to become populated only with the contacts associated with that customer. The list of customers comes from one database 'customers' and the list of contacts from a db 'contacts'. Using PHP and mySQL.

Any suggestions gratefully received.
  Reply With Quote
Old 22-07-2005, 07:32   #2 (permalink)
Transmogrify
Rough Creep Arse™
 
Transmogrify's Avatar
 
Join Date: Jul 2005
Location: Vancouver, Canada
Posts: 1,888
Send a message via MSN to Transmogrify
http://www.felgall.com/jstip22.htm

You'll be wanting this. Use PHP to populate the javascript. It's not the best code, but you'll get the general idea.
  Reply With Quote
Old 22-07-2005, 20:30   #3 (permalink)
datahound
Spare Parts
 
datahound's Avatar
 
Join Date: Jan 2005
Location: Bracknell Forest
Posts: 5,110
Thanks for that.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8