Web Hosting Talk







View Full Version : Dynamic multi column menu?


ssway
02-01-2005, 10:50 PM
I am having difficulty trying to build a menu with a set of 2 columns and another set of 3 columns.

The first set of 2 columns would be "car make" and "model" for example. The first column would be preloaded with various car makers (Ford, Honda, GM, etc). If the user were to select Honda in the first column all the various Honda models would appear in the next column.

Then on the same page the 2nd set of 3 columns would have "country", "province/state", "city". This would then behave in the same manner as the menu selection above. If "country" were to be selected, all the states of that country would then appear in the 2nd column. Then when clicking on a variable in the 2nd column the appropriate list of cities would appear in the final column.

In the end I would like to be able to pass on this data to a form submitted by the user to query/search a database. So each menu item would need a value that could be passed along.

Here are a few example pages of what I mean:
Example 1 (http://wdoe.riklund.org/root/javascript/visuals/selects/fill-list/index.html) (discussed here (http://www.sitepoint.com/forums/showthread.php?t=222093))
Example 2 (http://ati.com/support/driver.html)
Example 3 (http://nvidia.com/content/drivers/drivers.asp)

Any suggestions on the best way to implement this would be greatly appreciated thanks.

adyjan
02-02-2005, 03:37 AM
Hi
I can do this task. Please send me the details about the database and server side language in which you want to built it.

Regards,
Adnan Ahmad

ssway
02-28-2005, 12:57 AM
Hi adyjan,

Apologies for the delayed response. I had not realized anyone had responded to my post. Thank you very much.

The data base will be MySQL and serverside language will be php but in this case I wonder is it more practical from the main page for it to be a java script?

I have decided it would be better for my design to have it be two sets of 2 columns instead of 2 and then 3.

I have decided not to inlude country in the list of choices but rather to make a separate site/page for what ever country I wish to publish the site in.

So, I would have it as below:

first set of 2: "CarMake" and "CarModel"

the 2nd set of 2: "Province/State" and "City".

I hope this makes sense. Please let me know. Thanks!

adyjan
03-01-2005, 07:18 AM
Hi,
Please send me the details of the car makes and car model. and I send you the page sample within three days. Please send me the database details means that database tables and its fields detail and what about the payment criteria and how many you afford. also submit you hotmail address because I want to direct chat with you.

Regards,
Adnan Ahmad