473,397 Members | 2,068 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,397 software developers and data experts.

What is maximum amount of selected options in SELECT MULTIPLE

I've got a list where u can select some products. It's something like
this:

<SELECT NAME='Product' MULTIPLE SIZE='10'>
<%
'Get every possible item from items table
SQL = "SELECT DISTINCT productserie, producttype, itemnummer " &_
"FROM items " &_
"ORDER BY productserie, producttype"

Set DBCon = Server.CreateObject("ADODB.Connection")
Set ProductRs = Server.CreateObject("ADODB.Recordset")

DBCon.open strCon
ProductRs.open SQL, DBCon, 1, 1

'use the items to create a select list
While not ProductRs.eof
Response.Write "<OPTION VALUE='" & ProductRs("itemnummer") &_
"'>" & ProductRs("productserie") & " " &_
ProductRs("producttype") & "</OPTION>"

ProductRs.movenext
Wend

ProductRs.close
DBCon.close
%>
</SELECT>

I want to select many items to make a list. But i found out that if i
select a lot of items, the submit button doesn't work. Is there a
restriction on the amount of items selected??

Many Thnx, MaJoHu
Jul 19 '05 #1
5 2494
What is "a lot"? What does "doesn't work" mean?

I don't think there is a hard limit, but there is certainly an upper bound
to how much the browser and/or the client hardware can handle. It also
depends on what the browser has to do when the submit button is pressed.

FWIW, to prevent information overload, our administrative GUIs use
client-side code to monitor multiple selects, and allow a pre-determined
maximum number of choices. I'd post the code, but our GUIs are IE-only, and
this isn't a client-side scripting forum. ;-)

--
http://www.aspfaq.com/
(Reverse address to reply.)


"MaJoHu" <ik********@hotmail.com> wrote in message
news:b1**************************@posting.google.c om...
I've got a list where u can select some products. It's something like
this:

<SELECT NAME='Product' MULTIPLE SIZE='10'>
<%
'Get every possible item from items table
SQL = "SELECT DISTINCT productserie, producttype, itemnummer " &_
"FROM items " &_
"ORDER BY productserie, producttype"

Set DBCon = Server.CreateObject("ADODB.Connection")
Set ProductRs = Server.CreateObject("ADODB.Recordset")

DBCon.open strCon
ProductRs.open SQL, DBCon, 1, 1

'use the items to create a select list
While not ProductRs.eof
Response.Write "<OPTION VALUE='" & ProductRs("itemnummer") &_
"'>" & ProductRs("productserie") & " " &_
ProductRs("producttype") & "</OPTION>"

ProductRs.movenext
Wend

ProductRs.close
DBCon.close
%>
</SELECT>

I want to select many items to make a list. But i found out that if i
select a lot of items, the submit button doesn't work. Is there a
restriction on the amount of items selected??

Many Thnx, MaJoHu

Jul 19 '05 #2
MaJoHu wrote:
I want to select many items to make a list. But i found out that if i
select a lot of items, the submit button doesn't work.
What does "doesn't work" mean?
Is there a
restriction on the amount of items selected??

None that I know of.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #3
AFAIK no particular limit (how many products do you save ? do you use POST
?)

As a side note if you have really that much numerous options, you could try
something else (such as a popup that would have some filtering capabilities)
to ease the work of the user...

Patrice
"MaJoHu" <ik********@hotmail.com> a écrit dans le message de
news:b1**************************@posting.google.c om...
I've got a list where u can select some products. It's something like
this:

<SELECT NAME='Product' MULTIPLE SIZE='10'>
<%
'Get every possible item from items table
SQL = "SELECT DISTINCT productserie, producttype, itemnummer " &_
"FROM items " &_
"ORDER BY productserie, producttype"

Set DBCon = Server.CreateObject("ADODB.Connection")
Set ProductRs = Server.CreateObject("ADODB.Recordset")

DBCon.open strCon
ProductRs.open SQL, DBCon, 1, 1

'use the items to create a select list
While not ProductRs.eof
Response.Write "<OPTION VALUE='" & ProductRs("itemnummer") &_
"'>" & ProductRs("productserie") & " " &_
ProductRs("producttype") & "</OPTION>"

ProductRs.movenext
Wend

ProductRs.close
DBCon.close
%>
</SELECT>

I want to select many items to make a list. But i found out that if i
select a lot of items, the submit button doesn't work. Is there a
restriction on the amount of items selected??

Many Thnx, MaJoHu

Jul 19 '05 #4
Make sure the METHOD in your form tag is set to POST - using the default (GET) uses the query string, which has a limit to it...

SC
Jul 19 '05 #5
> What does "doesn't work" mean?

I meant with doesn't work, that is does nothing when I click on it.
When I select less items, it will work again.
do you use POST?

Yes, I use POST.

I was testing with how many items it wouldn't work anymore, but today
i can select all the items I want and it's still working.... weird.
Thnx anyway for trying to answer my question.
Jul 19 '05 #6

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

Similar topics

1
by: Keiron Waites | last post by:
Hi, I have two select fields with the multiple attribute so you can see all options. When a user clicks on one form, I would like to deselect anything from the other form. Is there a way to do...
15
by: TJ Walls | last post by:
Hello All, Is it possible to create a <select> element with no selected options? I have tried setting the selectedIndex attribute to -1, but as far as I can tell this only works for <select...
3
by: frey | last post by:
i have two parts of code here this is a javascript: function addThirdTierCategory(){ var length = document.form.selectedCategory.options.length var maxNum=10; if(length >= maxNum){...
1
by: smash2004 | last post by:
I want to keep selected values in select list when i click on another option...with a click on a mouse... if i have 3 options in select list and i click first option..it gets selected..if i then...
4
by: DBoy001 | last post by:
Hi ! I have a problem with Internet Explorer that I really can't explain. If anyone can find a solution to this, I congratulate you... I'm trying to have a script dynamically select all (or...
3
by: imrantbd | last post by:
I need array type name like "destList" must use for my destlist select box,not a single name.Or need a solution to capture multiple value of "destList" select box and send all selected value in php...
5
by: Max | last post by:
Is there any way to set a select-multiple type <select multiple="multiple"with multiple selected options in scripting? Any idea about this is appreciative.
1
Claus Mygind
by: Claus Mygind | last post by:
After the user has made their selection from a multiple select box how can I read the options array to see which items were selected <select id ="PHASECODE" name="PHASECODE" ...
1
by: vraamu | last post by:
here in this option transfer code.after transfering data from available _services multiple box to assigned_services multiple box i am unable to get the value of the assigned_services data for ex in...
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: 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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.