Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Custom Forms Question (Drop down menus that know what is selected)

Reply
Thread Tools

Custom Forms Question (Drop down menus that know what is selected)

 
 
VastFear
Guest
Posts: n/a
 
      08-07-2003
Greetings-

Hard one to explain here:

I am doing a custom form for a client but not sure how to tell the code to
do it!

- They want a drop down menu that has a series of selections.
- They have another drop down menu that needs to show series of selections
'based on' what is selected in the first menu.

For example:
- Say I have a drop down menu that has: Atari/Playstation in menu
- Second menu has list of games: River Raid/Pitfall/Resident Evil

If I choose Atari in the first menu I want the second menu to only show
River Raid/Pitfall (Resident Evil is not an Atari game). Or if I chose
Playstation the second menu would only contain Resident Evil) etc.

(Theirs is based on parts for a race car only certain parts can go with
other parts)

I assume there's a java script that tells it to compare or ASP or something.

Any help would be much appreciated!

Thanks
Erik

(This is the site: www.howeracing.com)


 
Reply With Quote
 
 
 
 
Hywel Jenkins
Guest
Posts: n/a
 
      08-07-2003
"VastFear" <> wrote in message news:<M7mYa.57148$. net>...
> Greetings-
>
> Hard one to explain here:
>
> I am doing a custom form for a client but not sure how to tell the code to
> do it!
>
> - They want a drop down menu that has a series of selections.
> - They have another drop down menu that needs to show series of selections
> 'based on' what is selected in the first menu.
>
> For example:
> - Say I have a drop down menu that has: Atari/Playstation in menu
> - Second menu has list of games: River Raid/Pitfall/Resident Evil
>
> If I choose Atari in the first menu I want the second menu to only show
> River Raid/Pitfall (Resident Evil is not an Atari game). Or if I chose
> Playstation the second menu would only contain Resident Evil) etc.
>
> (Theirs is based on parts for a race car only certain parts can go with
> other parts)
>
> I assume there's a java script that tells it to compare or ASP or something.
>
> Any help would be much appreciated!


http://developer.irt.org/script/form.htm#4

--
Hywel
 
Reply With Quote
 
 
 
 
Richard
Guest
Posts: n/a
 
      08-07-2003
VastFear wrote:>>

> Greetings-


> Hard one to explain here:


> I am doing a custom form for a client but not sure how to tell the code
> to do it!


> - They want a drop down menu that has a series of selections.
> - They have another drop down menu that needs to show series of
> selections 'based on' what is selected in the first menu.


> For example:
> - Say I have a drop down menu that has: Atari/Playstation in menu
> - Second menu has list of games: River Raid/Pitfall/Resident Evil


> If I choose Atari in the first menu I want the second menu to only show
> River Raid/Pitfall (Resident Evil is not an Atari game). Or if I chose
> Playstation the second menu would only contain Resident Evil) etc.


> (Theirs is based on parts for a race car only certain parts can go with
> other parts)


> I assume there's a java script that tells it to compare or ASP or
> something.


> Any help would be much appreciated!


> Thanks
> Erik


> (This is the site: www.howeracing.com)


What you need is a multilevel menu array.
menuitem[0] as you know is single level.
menuitem[0,0] is a two level array.
menuitem[0,0,0] is three.

The trick is, keeping all the items lined up so that menu 1 directs the
proper response to menu 2 and so on.
I've only seen a few sites use this feature.
Another problem is, will it work in all browsers? Maybe not.
You probably should look for a cgi script that does it.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about pull down menus on asp forms. Brave ASP General 6 03-27-2007 01:38 PM
forms authentication -- expired forms cookie vs. not provided forms cookie Eric ASP .Net Security 2 01-27-2006 10:09 PM
Select menus above flyout menus? help? news.west.cox.net HTML 8 12-09-2004 12:54 PM
I know, I know, I don't know Andries Perl Misc 3 04-23-2004 02:17 AM
No drop down menus with M ? The Cat. Firefox 1 02-17-2004 08:35 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57