473,791 Members | 3,193 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Extra long Menu OPTIONS from drop down list

I am developing a Form to be used for data input into a database. To
limit errors in fields I want to input some data using "<SELECT
NAME=xxxxx> <OPTIONS VALUE=yyyyy> <OPTIONS VAL........> .......
</SELECT>". The problem is that some of the menu lists to be presented
are very large for a single drop down menu, 400 - 500 entries. I can
break them up into shorter menus according to alphabetical ordering but
can I use several "<SELECT NAME=xxxxx>" with the same names, even if I
am make "MULTIPLE" selections possible. Or is there another way around
this, I am sure other developers had been faced with this problem before.
Suggestions and feed back welcomed. Thanks

Jul 20 '05 #1
2 4361
Adam Smith <ad*******@econ .com> writes:
I am developing a Form to be used for data input into a database. To
limit errors in fields I want to input some data using "<SELECT
NAME=xxxxx> <OPTIONS VALUE=yyyyy> <OPTIONS VAL........>
....... </SELECT>". The problem is that some of the menu lists to be
presented are very large for a single drop down menu, 400 - 500
entries. I can break them up into shorter menus according to
alphabetical ordering but can I use several "<SELECT NAME=xxxxx>" with
the same names, even if I am make "MULTIPLE" selections possible. Or
Yes, but your form parser will have to deal with it carefully. Though
if you're using 'select multiple' you've already got to deal with
that, so you should be fine.
is there another way around this, I am sure other developers had been
faced with this problem before.


Allow text input, check if it's in the allowed list, if it's not
return to the form with an error and maybe a list of 'close'
alternatives. If it's in the allowed list, proceed with form processing.

You could possibly combine that with optional Javascript to check if
it was in the allowed list *before* submission.

--
Chris
Jul 20 '05 #2


Adam Smith wrote:
I am developing a Form to be used for data input into a database. To
limit errors in fields I want to input some data using "<SELECT
NAME=xxxxx> <OPTIONS VALUE=yyyyy> <OPTIONS VAL........> .......
</SELECT>". The problem is that some of the menu lists to be presented
are very large for a single drop down menu, 400 - 500 entries. I can
break them up into shorter menus according to alphabetical ordering but
can I use several "<SELECT NAME=xxxxx>" with the same names, even if I
am make "MULTIPLE" selections possible. Or is there another way around
this, I am sure other developers had been faced with this problem before.
Suggestions and feed back welcomed. Thanks


You should be able to use several
<select name="selectNam e">
inside of one form without problems, the user agent simply submits
name=value pairs so it won't make any difference when the form data is
processed.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #3

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

Similar topics

6
15421
by: Greg Scharlemann | last post by:
I am attempting to populate a drop down menu based on the selection of a different drop down menu. However, it is not working correctly, I cannot figure out for the life of me what exactly happens because I am not getting any errors on the page. <html> <script language="javascript"> var phaseArray = new phaseArray(4); var phaseTypeId = new phaseTypeId(4); var phaseId = new phaseId(4);
1
6366
by: Greg Scharlemann | last post by:
I would like to automatically populate a drop down menu when the page loads based on the selection of an item in a different drop down menu. I made a test page that when drop down #1 changes, drop down #2 populates. Does anyone know how to get drop down #2 to populate based on what is selected in drop down #1 when the page loads? Here is my test code: ************************************************************************ <html>...
3
23334
by: Darren | last post by:
Please Help Me!! I've created a typical <form> and a <select> element. The options are created dynamically from my access database (using asp). There are about 70 options, and when you click the dropdown button, it shows about 25 (depending on screen resolution) and then the gives you a scroll bar to get to the rest. My question is, can I limit the number of options shown when you click
4
2077
by: Odin | last post by:
Hello I am making a webpage with two dropdown menus. First I have a dropdown menu with a list of 235 countries. When one country is selected from this list the contents of the next dropdown menu is decided from a coresponding file containing a huge amount of cities. The biggest of these files being 6 MB. Getting different advices I have now to different sets of code doing this thing. Does anyone know if any of these two sets of code is...
4
1529
by: Laura K | last post by:
I have a drop down menu which has a list of subcategories and the initial value is "please choose a Subcategory". When the user chooses a subcategory they are taken to a new page where the drop down list shows the selected subcategory in the menu. So far that is working. The problem is that when the list is showing the subcategory on the second page there are now two of that item in the list and the initial item that should be available...
4
9299
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me if it works, and if it does not, tell me why it does not work. Thanks.
1
2409
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 name="menu" style="font-family:'Calligrapher';color:#993333;background-color:#FFFFFF;font-size:10pt;"><option value="http://www.localwebsolutions.com/local-business-marketing-online.html">Marketing Online</option><option...
5
4008
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 Fields Names: countrycode, make
2
7001
by: RLN | last post by:
I was at this link to add a menu bar to my Access app. http://office.microsoft.com/en-s/access/HP051890341033.aspx I got the menu bar added, but had some more questions about it. In the link above, there was mention of assigning it as the "Global menu" bar, but it does not indicate how to specify a custom menu bar as the global bar. Any idea how to do this?
0
9669
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10428
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10156
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9997
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6776
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4110
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 we have to send another system
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2916
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.