473,410 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

Dependent Drop Down Menus 3 deep

Ugh .. You woudn't think this would be a challange - but I've been through searching everywhere and tried three different things and nothing works.

I need a dependant drop down menu ... (PHP code)

MAKE (Chevy, Toyota etc)

MODEL (list of models depending on selected above)

YEAR - list of years - depending on above two selections

Now client doesn't want to "submit" after each selection so it has to be something that updates automatically. So probably js or AJAX.

Problem is - I can get one level down (Make/model) but not the third. Also in the one method where I really do get the third to list ... there is no way to capture what was saved in Make/Model to pass to the next page.

I don't want to just spit back what was selected - I need to take the three variables and pull information from a shopping cart catalog and display all that.

Has anyone successfully done this ? Obviously someone has .. but I can't figure out all the pieces. It's not as easy as I though !

Any info - or point me to something new.

Thanks

Donna
Mar 2 '08 #1
4 3037
dlite922
1,584 Expert 1GB
Ugh .. You woudn't think this would be a challange - but I've been through searching everywhere and tried three different things and nothing works.

I need a dependant drop down menu ... (PHP code)

MAKE (Chevy, Toyota etc)

MODEL (list of models depending on selected above)

YEAR - list of years - depending on above two selections

Now client doesn't want to "submit" after each selection so it has to be something that updates automatically. So probably js or AJAX.

Problem is - I can get one level down (Make/model) but not the third. Also in the one method where I really do get the third to list ... there is no way to capture what was saved in Make/Model to pass to the next page.

I don't want to just spit back what was selected - I need to take the three variables and pull information from a shopping cart catalog and display all that.

Has anyone successfully done this ? Obviously someone has .. but I can't figure out all the pieces. It's not as easy as I though !

Any info - or point me to something new.

Thanks

Donna
I'm actually about to do something like this myself. But from what i've seen in most sites, they usually select the year first, or second, not last. Reason is, some models don't exists some years.

Besides that fact, what i would do is three all peice of information with AJAX.

On the Server side grab each one, if NOT blank, add it in the WHERE clause.

Then return the results in XML format something probably like this:

<makes>
<make>Chevy</make>
<make>Honday</make>
etc
</makes>
<models>
<model>HX</model>

</models>
<years>
<year>2000</year>
<year>1999</year>
</years>


Of course that's what it will look like after the second drop down. The first time the year would be empty until you select a model. Initially you want to have all the Makes listed to start with.

It is easy to do. maybe you're looking too much into it. I'll never know until i'll complete it myself.
Mar 2 '08 #2
hsriat
1,654 Expert 1GB
Challenge!!!!!!!!?????? ...... :D

Clever way to provoke guys out here to write code for you.

But I guess along what dlite922 has advised you, you can check this link out.
Mar 2 '08 #3
dlite922
1,584 Expert 1GB
Challenge!!!!!!!!?????? ...... :D

Clever way to provoke guys out here to write code for you.

But I guess along what dlite922 has advised you, you can check this link out.
honestly, its not that bad, i've seen way worse. The title implies, but the body says , point me in the right direction.

It is kinda too much to ask to write the whole AJAX app for him. If he's tacking AJAX and application this big, i think he knows code well enough that if we tell him what to do, he can figure itout.

W3Schools is a great website.

I totally agree he's lacking in the AJAX department.
Mar 2 '08 #4
ronverdonk
4,258 Expert 4TB
When you are looking for good tutorials, here are 2:
1. Universal Related Popup Menus
for a more general tutorial about related popups. and

2. Universally Related Popup Menus AJAX Edition
for a specific Ajax implementation of drop downs working towards an implementation of your request (i.e. car manufactorer -> model -> model level).

Have fun.

Ronald
Mar 2 '08 #5

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

Similar topics

4
by: Nanos | last post by:
For the form I need to create drop down select with say five different options. There also should be possibility to enter own option if one is not listed. How can I do it.? Thank you in advance...
3
by: KK | last post by:
Drop-down menus are the hottest thing since Wonder Bread but . . . 1. Alot of people put them in the they-look-nice-but-you-cant-code-them-right-so-they-always-look-messed-up category (a la...
10
by: Haines Brown | last post by:
I've implemented the horizontal drop down menu discussed recently in this newsgroup, and it works nicely under Galeon and Mozilla, but not IE 5.0. Here are the problems: Under IE 5.0, the...
0
by: vikram.cvk | last post by:
Hello Experts, Im trying to design a CSS vertical drop down menu which should have the following functionality. Home About Us | -->Overview
4
by: Larry R Harrison Jr | last post by:
I have them working now, courtesy of the link given in the prior thread--the HVMenu over at Dynamic Drive myself. http://www.dynamicdrive.com I have them working as side-bar menus, not...
2
by: pantagruel | last post by:
I have an old web application I did where browsers with dynamic capabilities received a drop down menu on the top of the page and a fold out on the left hand side of the page and non-dynamic...
10
by: lorirobn | last post by:
Hi, I have a form with several combo boxes, continuous form format, with record source a query off an Item Table. The fields are Category, Subcategory, and Color. I am displaying descriptions,...
1
by: Kaland | last post by:
Do the search engines follow links that are within forms (like the drop-down menu) so that those pages are indexed? Here is the code for a sample drop-down menu that I created. <form><select...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.