Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: Dynamic Dropdown Menus

Feedback on: Dynamic Dropdown Menus

Sent by Damian Arguimbau on September 30, 1998 at 09:12:30: - feedback #19
Very good article!
Informative and easy to read.
Now "Using javascript with forms" is an obvious one to start writing!

Best,
Damian

Sent by Paul Arveson on December 04, 1998 at 13:40:17: - feedback #59
This was something I have been hunting for for a long time. It's really helpful for lots of things. You are just great to do this!

Thanks a lot!

Sent by Mike Roberts on June 02, 1999 at 03:37:21: - feedback #216

Worth:
Very worth reading

Length:
Just right

Technical:
Too technical

Comments:
I found this article very useful indeed. I am trying to implement a similar form on my website, although I want mine to be able to be broken down even further to a 'third level' e.g. after selecting an artist, then an album, you are then able to select a track off the chosen album. Could you please let me know how this is done!! It'd be much appreciated!!

Cheers,
Mike Roberts



Sent by sridhar on August 26, 1999 at 16:21:09: - feedback #412

Worth:
Worth reading

Comments:
This article is worth reading but did not serve my purpose.

i need to get the dropdown box populated from the database and
if i change an item in the first dropdown it should get reflected in the second drop down .

this should work in netscape 4.0





Sent by Richard Hellier on April 11, 2000 at 05:20:41: - feedback #1069

Worth:
Very worth reading

Comments:
The closing </HEAD> element in the example page is botched (it appears as
<\/HEAD> instead!)

Cheers,

Richard.



Sent by suneel on September 19, 2000 at 04:58:33: - feedback #1767

Worth:
Very worth reading

Comments:
Dear Sir
I have read ur coding on above thing.But I am looking for a code which changes the elements of the
second dropdown corresponding in first dropdown element and same should continue to two or more dropdowns.
If possible emailthe free code else I will search in ur site
as usual.

Kindly yours
suneel


Sent by Phillip Anderson on December 02, 2000 at 21:58:42: - feedback #2092

Comments:
Further to my previous question about having the choice in one dropdown list spawn a second array of choices in a second dropdown list, all the options-list boxes must be on a single page (frame), and not have one list just change the contents of another frame.

I can't see that the article on Dynamic Dropdown Menus applies.

Thanks for your help


Sent by Joseph Young on December 08, 2000 at 08:13:03: - feedback #2121

Worth:
Very worth reading

Length:
Just right

Technical:
Just right

Comments:
Great site! I'm just starting to learn Javascript.

Some typos in your Dynamic Dropdown Menus article:

You have <\/HEAD> several times, instead of </HEAD>.

Also, the NAME attribute for FORM is not available in current versions, according to my ColdFusion software.

Thanks!


Sent by Adele Phillips on January 15, 2001 at 16:32:07: - feedback #2245

Worth:
Very worth reading

Comments:
Great article.

To exand on this... how would you add a dynamic drop down to say the 'Annie Lennox" of the artist page, and have the selection from that dynamic list viewed?

So when I select Anni Lennox on the first go drop down, I have a dynamic dropdown from say a database select criteria. The user would select the appropriate choice from the second drop down and view the document based on the second choice?

How would you do that? Your article has hardcoded choices, how would you build it to have dynamic choices pulled from a database. Assuming the odb connections are all correct. I just asking about the javascript portion??

Adele


Sent by Mark McVicker on February 09, 2001 at 22:22:02: - feedback #2353

Worth:
Very worth reading

Length:
Just right

Technical:
Just right

Comments:
The example at the end of the article (URL: http://tech.irt.org/articles/js042/who.htm ) has an incorrect ending <head> tag. The tag has an inapproriate backslash in it:
<\/head>

Cheers,
-Mark
USA


Sent by parshu ram on June 29, 2001 at 04:09:14: - feedback #2922

Worth:
Worth reading

Length:
Just right

Comments:
how can i get the menu displayed with the database elements where i store the menu function bits which differ from screen to screen??
then how can i call the appropriate function? as i am having function bits. pl. help me out.


Sent by David on December 07, 2001 at 08:25:22: - feedback #3402

Worth:
Very worth reading

Comments:
I have a suggestion this is great code but if you would like to populate the other dropdown menu as soon as you select a name just replace this

<FORM NAME="artists" onSubmit="return reshow(document.artists.artist)">
<SELECT NAME="artist">

with this

<FORM NAME="artists" >
<SELECT NAME="artist" onchange="return reshow(document.artists.artist)">



Sent by Jacco on December 22, 2001 at 16:42:10: - feedback #3435

Worth:
Worth reading

Length:
Just right

Technical:
Just right

Comments:
The dynamic dropdown menu example (URL: http://tech.irt.org/articles/js042/who.htm) unfortunately doesn't work in Opera 5.

The remedy is quite simple, you only have to add /option tags to the first dropdown menu.

<SELECT NAME="artist">
<OPTION>Chris Rea</OPTION>
<OPTION>Annie Lennox</OPTION>
<OPTION>Dina Carrol</OPTION>
</SELECT>




Sent by Todd Putnam on April 09, 2002 at 13:43:34: - feedback #3766

Worth:
Worth reading

Comments:
Mine is a question more than a comment. I'm wondering whether it wouyld be possible to initiate the change between the two menus without clicking the GO button. That way, a person can see what their options would be instantaneously, without needing to select. Any ideas? Thanks.


Sent by Gurpal singh on May 04, 2002 at 00:04:03: - feedback #3834

Worth:
Worth reading

Comments:
Well Done...!!


Sent by Dmitri Golovatch on September 17, 2002 at 20:58:17: - feedback #4157

Worth:
Very worth reading

Length:
Just right

Technical:
Just right

Comments:
This dropdown works fine in Internet Explorer. But when I tried to use it with Netscape 6 it does not work. It simply reloads the page. I tried several options, but the result is the same. Do you know how to solve this problem?
Thanks in advance!


Sent by vikram malhotra on Monday October 29, 2007 at 04:22:20 - feedback #5120

Worth:
Worth reading

Length:

Technical:

Comments:
Ok I found this article worth reading, but the thing is that my problem is a little different. What I want to do is I want to create a drop-down menu from values of a field stored in a database dynamically. This task seems to be pretty typical as JavaScript is for client-side, while database records will work on server-side. How can we do this fusion? Can anyone suggest something? Thanks




©2018 Martin Webb