473,385 Members | 1,752 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,385 software developers and data experts.

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 2418
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
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
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
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
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
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
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
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
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
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.