473,484 Members | 1,613 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Question about pull down menus on asp forms.

I have two questions about pulldown menus on forms.

1: Can I have the options of one pulldown menu be dictated by the
choice from another pulldown menu (example beow)?

2: Can I have a form be submitted when a choice is made in a pulldown
menu (example below)?

Example of question 1:

I have a form with two pulldown menus. The first one has two options.

1: LETTERS
2: NUMBERS

If I choose LETTERS, then the second menu offers the options A, B, and
C.
If I choose NUMBERS, the the second menu offers the options 1, 2, and
3.

Example of question 2:

Lets say (using the example above) I choose LETTERS from menu 1.
I then choose B from the menu 2. Once I choose the last option, I
would like to have the form automatically submit.

This functionality is new to me so I am not sure how to go about
creating the code. Any samples you can offer would be greatly
appreciated. Here is how I would make the form for the example above
but past that, I am lost.

<form method="POST" action="FormProcesspage.asp">

<p><select size="1" name="menu1">
<option>Letters</option>
<option>Numbers</option>
</select></p>

<p><select size="1" name="menu2">
<option>A or 1</option>(dictated by menu1)
<option>B or 2</option>(dictated by menu1)
<option>C or 3</option>(dictated by menu1)
</select></p>

<p><input type="submit" value="Submit"></p>

</form>

Thank you for taing the time to read my inquiry, and for any help (and
hopfully code samples) you can offer.

Mar 23 '07 #1
7 2422
Brave wrote on 23 mrt 2007 in microsoft.public.inetserver.asp.general:
I have two questions about pulldown menus on forms.

1: Can I have the options of one pulldown menu be dictated by the
choice from another pulldown menu (example beow)?

2: Can I have a form be submitted when a choice is made in a pulldown
menu (example below)?

Example of question 1:

I have a form with two pulldown menus. The first one has two options.

1: LETTERS
2: NUMBERS

If I choose LETTERS, then the second menu offers the options A, B, and
C.
If I choose NUMBERS, the the second menu offers the options 1, 2, and
3.

Example of question 2:

Lets say (using the example above) I choose LETTERS from menu 1.
I then choose B from the menu 2. Once I choose the last option, I
would like to have the form automatically submit.

This functionality is new to me so I am not sure how to go about
creating the code. Any samples you can offer would be greatly
appreciated. Here is how I would make the form for the example above
but past that, I am lost.

<form method="POST" action="FormProcesspage.asp">

<p><select size="1" name="menu1">
<option>Letters</option>
<option>Numbers</option>
</select></p>

<p><select size="1" name="menu2">
<option>A or 1</option>(dictated by menu1)
<option>B or 2</option>(dictated by menu1)
<option>C or 3</option>(dictated by menu1)
</select></p>

<p><input type="submit" value="Submit"></p>

</form>

Thank you for taing the time to read my inquiry, and for any help (and
hopfully code samples) you can offer.
And what is your ASP question?

Remember: ASP is a platform for serverside code, either vbs or jscript,
ans your question concerns only clientside code.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Mar 23 '07 #2

"Brave" <br*********@yahoo.comwrote in message
news:11**********************@y66g2000hsf.googlegr oups.com...
>I have two questions about pulldown menus on forms.

1: Can I have the options of one pulldown menu be dictated by the
choice from another pulldown menu (example beow)?

2: Can I have a form be submitted when a choice is made in a pulldown
menu (example below)?

Example of question 1:

I have a form with two pulldown menus. The first one has two options.

1: LETTERS
2: NUMBERS

If I choose LETTERS, then the second menu offers the options A, B, and
C.
If I choose NUMBERS, the the second menu offers the options 1, 2, and
3.

Example of question 2:

Lets say (using the example above) I choose LETTERS from menu 1.
I then choose B from the menu 2. Once I choose the last option, I
would like to have the form automatically submit.

This functionality is new to me so I am not sure how to go about
creating the code. Any samples you can offer would be greatly
appreciated. Here is how I would make the form for the example above
but past that, I am lost.

<form method="POST" action="FormProcesspage.asp">

<p><select size="1" name="menu1">
<option>Letters</option>
<option>Numbers</option>
</select></p>

<p><select size="1" name="menu2">
<option>A or 1</option>(dictated by menu1)
<option>B or 2</option>(dictated by menu1)
<option>C or 3</option>(dictated by menu1)
</select></p>

<p><input type="submit" value="Submit"></p>

</form>

Thank you for taing the time to read my inquiry, and for any help (and
hopfully code samples) you can offer.
Although I live in the same country as Evertjan you and everyone else should
notice that we are not all the same...
so here's what you are actualy looking for:
http://classicasp.aspfaq.com/forms/h...n-another.html
Mar 23 '07 #3
Marc wrote:
Although I live in the same country as Evertjan you and everyone else
should notice that we are not all the same...
so here's what you are actualy looking for:
http://classicasp.aspfaq.com/forms/h...n-another.html
Thank you for providing the answer; however, by not also redirecting him to
a client-side scripting newsgroup, you did a little disservice to the
poster. Note that your reply to his offtopic post came 5 hours after he
posted it. If he had posted it to a client-side scripting group (such as
microsoft.public.scripting.jscript), I submit he would have had an answer in
minutes instead of hours. My goal when I tell a user he's posted in the
wrong place is to help the user get assistance more efficiently, not to play
net cop. I like to think that that is Evertjian's goal as well.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Mar 24 '07 #4
ASP example of multiple dependent dropdowns can be found here...

http://www.aspkey.net/aspkey/_articl...icles.asp?#100

"Brave" <br*********@yahoo.comwrote in message news:11**********************@y66g2000hsf.googlegr oups.com...
>I have two questions about pulldown menus on forms.

1: Can I have the options of one pulldown menu be dictated by the
choice from another pulldown menu (example beow)?

2: Can I have a form be submitted when a choice is made in a pulldown
menu (example below)?

Example of question 1:

I have a form with two pulldown menus. The first one has two options.

1: LETTERS
2: NUMBERS

If I choose LETTERS, then the second menu offers the options A, B, and
C.
If I choose NUMBERS, the the second menu offers the options 1, 2, and
3.

Example of question 2:

Lets say (using the example above) I choose LETTERS from menu 1.
I then choose B from the menu 2. Once I choose the last option, I
would like to have the form automatically submit.

This functionality is new to me so I am not sure how to go about
creating the code. Any samples you can offer would be greatly
appreciated. Here is how I would make the form for the example above
but past that, I am lost.

<form method="POST" action="FormProcesspage.asp">

<p><select size="1" name="menu1">
<option>Letters</option>
<option>Numbers</option>
</select></p>

<p><select size="1" name="menu2">
<option>A or 1</option>(dictated by menu1)
<option>B or 2</option>(dictated by menu1)
<option>C or 3</option>(dictated by menu1)
</select></p>

<p><input type="submit" value="Submit"></p>

</form>

Thank you for taing the time to read my inquiry, and for any help (and
hopfully code samples) you can offer.

Mar 24 '07 #5

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote in message
news:Om**************@TK2MSFTNGP05.phx.gbl...
Marc wrote:
Although I live in the same country as Evertjan you and everyone else
should notice that we are not all the same...
so here's what you are actualy looking for:
http://classicasp.aspfaq.com/forms/h...n-another.html
>
Thank you for providing the answer; however, by not also redirecting him
to
a client-side scripting newsgroup, you did a little disservice to the
poster. Note that your reply to his offtopic post came 5 hours after he
posted it. If he had posted it to a client-side scripting group (such as
microsoft.public.scripting.jscript), I submit he would have had an answer
in
minutes instead of hours. My goal when I tell a user he's posted in the
wrong place is to help the user get assistance more efficiently, not to
play
net cop. I like to think that that is Evertjian's goal as well.
Bob, I think your too generous.

Evertjan first asked this question:-

'And what is your ASP question?'

Can that be read as anything other than sarcastic?

Sarcasm has it's place in the face of the willfully ignorant but not
directed to an original post.

What defines off topic anyway?

Are you entirely sure that can't ASP at least be part of the solution?

I've got loads of such circumstances where supplementary posts to the server
are necessary to build the content of other controls.

If such a question is off topic why does aspfaq contain an answer?


Mar 25 '07 #6
Anthony Jones wrote:
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote in message
news:Om**************@TK2MSFTNGP05.phx.gbl...
>Marc wrote:
>>Although I live in the same country as Evertjan you and everyone
else
should notice that we are not all the same...
so here's what you are actualy looking for:
http://classicasp.aspfaq.com/forms/h...n-another.html
>>
Thank you for providing the answer; however, by not also redirecting
him
to
>a client-side scripting newsgroup, you did a little disservice to the
poster. Note that your reply to his offtopic post came 5 hours after
he
posted it. If he had posted it to a client-side scripting group
(such as microsoft.public.scripting.jscript), I submit he would have
had an answer
in
>minutes instead of hours. My goal when I tell a user he's posted in
the
wrong place is to help the user get assistance more efficiently, not
to
play
>net cop. I like to think that that is Evertjian's goal as well.

Bob, I think your too generous.
Maybe.
What defines off topic anyway?

Are you entirely sure that can't ASP at least be part of the solution?
Of course it can be, but dynamic lists ALWAYS involve client-side scripting.
>
I've got loads of such circumstances where supplementary posts to the
server
are necessary to build the content of other controls.
I really was responding to this particular case, which clearly did not
involve a supplementary post to the server. Forced to make a distinction, I
would say that asking how to code the page that provides the response to
that supplemental post is ontopic. Asking how to write the client-side
script to cause that supplemental post to be made is better handled by the
javascript experts over in the scripting groups. If you're an expert in both
technologies, feel free to provide an answer to the question. I know I have
provided answers in similar situations. I'm just saying the answer could be
more quickly obtained in the scripting newsgroup.
If such a question is off topic why does aspfaq contain an answer?
I can't speak for Aaron, but I would assume it's a concession to its being
asked so frequently. You will note that he really does not provide an answer
in that article except for providing links to javascript solutions.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Mar 25 '07 #7
On Mar 25, 2:56 pm, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
Anthony Jones wrote:
"Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcomwrote in message
news:Om**************@TK2MSFTNGP05.phx.gbl...
Marc wrote:
Although I live in the same country as Evertjan you and everyone
else
should notice that we are not all the same...
so here's what you are actualy looking for:
http://classicasp.aspfaq.com/forms/h...opdown-depend-...
Thank you for providing the answer; however, by not also redirecting
him
to
a client-side scripting newsgroup, you did a little disservice to the
poster. Note that your reply to his offtopic post came 5 hours after
he
posted it. If he had posted it to a client-side scripting group
(such as microsoft.public.scripting.jscript), I submit he would have
had an answer
in
minutes instead of hours. My goal when I tell a user he's posted in
the
wrong place is to help the user get assistance more efficiently, not
to
play
net cop. I like to think that that is Evertjian's goal as well.
Bob, I think your too generous.

Maybe.
What defines off topic anyway?
Are you entirely sure that can't ASP at least be part of the solution?

Of course it can be, but dynamic lists ALWAYS involve client-side scripting.
I've got loads of such circumstances where supplementary posts to the
server
are necessary to build the content of other controls.

I really was responding to this particular case, which clearly did not
involve a supplementary post to the server. Forced to make a distinction, I
would say that asking how to code the page that provides the response to
that supplemental post is ontopic. Asking how to write the client-side
script to cause that supplemental post to be made is better handled by the
javascript experts over in the scripting groups. If you're an expert in both
technologies, feel free to provide an answer to the question. I know I have
provided answers in similar situations. I'm just saying the answer could be
more quickly obtained in the scripting newsgroup.
If such a question is off topic why does aspfaq contain an answer?

I can't speak for Aaron, but I would assume it's a concession to its being
asked so frequently. You will note that he really does not provide an answer
in that article except for providing links to javascript solutions.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"- Hide quoted text -

- Show quoted text -
Thank you to everyone for taking the time, and thanks for giving me a
different group to ask these questions. I have always been happy withe
response I get from my posts, and I still am. EVERYONE have a great
day!

Mar 27 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5821
by: Rich | last post by:
We are preparing a page with twelve (12) drop down option/select menus, arranged vertically. It works, and it is what the user needs. The widths of the menu boxes are random now, but is there...
6
2375
by: Bonge Boo! | last post by:
This has got to be obvious, but I can't make it work. I have a form called with 3 pull down menus. They are linked to a database which generates the values for the <SELECT? Pull-downs. Lets...
55
4590
by: Steve Jorgensen | last post by:
In a recent thread, RKC (correctly, I believe), took issue with my use of multiple parameters in a Property Let procedure to pass dimensional arguments on the basis that, although it works, it's...
2
2293
by: Rich | last post by:
Hello, I have set up a multithreading routine in a Test VB.net proj, and it appears to be working OK in debug mode and I am not using synchronization. Multithreading is a new thing for me, and...
2
3090
by: Keith Burns | last post by:
Hi, I have seen two entries in the archives for this topic: 1. Uses hypertext, not a pulldown menu to feed parameters back to the python CGI 2. The other actually used Java. Is there a way...
1
1666
by: dkimbrell | last post by:
Hi there, I'm very novice to web design. I'm trying to make a pulldown menu, but the formatting keeps getting screwed up when you roll the mouse over it. Please see www.boundarysys.com for...
5
1683
by: Byron | last post by:
I need to create an application that uses primarily a single form rather than an SDI that creates a new form for everythting. However, I don't want an MDI style application since the users I'm...
5
3969
by: giandeo | last post by:
Hello Experts. Could you find a solution for this problem please! I have the following tables in Access Database Table Name: origin Fields Names: country, countrycode Table Name: make...
12
1269
by: art | last post by:
Hi, I'm sure a PHP genius will know this one. I need to create 3 linked drop down menus on the page. The data is coming from Mysql / PHP script. I see lots of examples with this in...
0
7082
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
6953
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
7144
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6813
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7214
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4845
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4529
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1359
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
235
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.