Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 05:27 PM
Adam Smith
Guest
 
Posts: n/a
Default 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

  #2  
Old July 20th, 2005, 05:27 PM
Chris Morris
Guest
 
Posts: n/a
Default Re: Extra long Menu OPTIONS from drop down list

Adam Smith <adamsmith@econ.com> writes:[color=blue]
> 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[/color]

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.
[color=blue]
> is there another way around this, I am sure other developers had been
> faced with this problem before.[/color]

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
  #3  
Old July 20th, 2005, 05:27 PM
Martin Honnen
Guest
 
Posts: n/a
Default Re: Extra long Menu OPTIONS from drop down list



Adam Smith wrote:
[color=blue]
> 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[/color]

You should be able to use several
<select name="selectName">
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/

 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles