473,671 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

specify selection list height??

n8kindt
221 New Member
hi, i have a selection list that has 150 options in it. in firefox i have no problem with my current set up. when u click on the list box, the menu drops down. but in internet explorer, the menu goes sky high all the way to the top of the window. with this method, changing one number takes a lot of work. i'm wondering if anyone knows how to limit the size of the list box or force the menu box to drop down? here's a sample of my current code right now...
Expand|Select|Wrap|Line Numbers
  1. <select name="17286_qty" id="17286_qty" onChange="document.cart.submit()">
  2.                                             <option value="0">Delete</option>
  3.                                             <option value="1" selected>1</option>
  4.                                             <option value="2">2</option>
  5.  
  6.                                             <option value="3">3</option>
  7.                                             <option value="4">4</option>
  8.                                             <option value="5">5</option>
  9.                                             <option value="6">6</option>
  10.                                             <option value="7">7</option>
  11.                                             <option value="8">8</option>
  12.  
  13.                                             <option value="9">9</option>
  14.                                             <option value="10">10</option>
  15.                                             <option value="11">11</option>
  16. </select>
one more thing worth noting... in internet explorer, the "delete" option isn't even visible until you scroll up. not sure if somehow changing the menu orientation will solve this problem or not... thanks guys! i look forward to your replies
Aug 13 '08 #1
5 6471
acoder
16,027 Recognized Expert Moderator MVP
You shouldn't have a selection list with 150 options.

Try making smaller lists using categories to split them and display a secondary list, i.e. dependent drop-down lists. You would need JavaScript for this though (which I see you're using anyway).
Aug 14 '08 #2
n8kindt
221 New Member
You shouldn't have a selection list with 150 options.

Try making smaller lists using categories to split them and display a secondary list, i.e. dependent drop-down lists. You would need JavaScript for this though (which I see you're using anyway).
thanks for your reply, acoder.

i will definitely agree with you that there should never be combo boxes with that many choices. unfortunately, i'm not the one who originally designed the site and this is the only quick fix solution i can think of.

this combo box is used for only one thing--choosing quantities. ideally, i would like the combo box be 10 deep and then give the user an option for specifying the quantity if they would like more. but this is no quick fix and there is a possibility i would have to completely overhaul the whole system b/c of the way it was originally set up. and i don't think the people who hired me would want to pay for that at this point.

anyways, i'm out of ideas...
Aug 14 '08 #3
acoder
16,027 Recognized Expert Moderator MVP
The only quick fix I can think of right now (which would change the layout though) is to specify a size for the select element.
Aug 15 '08 #4
n8kindt
221 New Member
The only quick fix I can think of right now (which would change the layout though) is to specify a size for the select element.
well I ended up deciding just to restructure it regardless of how long it would take me. after looking at other retail sites (target, walmart, amazon, barnesandnoble) I found they all used input boxes for the user to choose the qty and a submit button to update the qty so I figured it was probably the best tried and true way to go. it didn't take me as long as I thought it would so I'm glad I did it. anyways the question I posted earlier is moot now. thanks again for your replies
Aug 16 '08 #5
acoder
16,027 Recognized Expert Moderator MVP
Yes, an input box would be much better. Glad you got it working without too much trouble.
Aug 17 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

16
3022
by: Jeremy Clulow | last post by:
One disadvantage of designing with CSS and without tables appears to be that selecting specific block of text from a web page to copy and paste, or in order for it to be read by a text-to-speech programme is very difficult. My own website www.webswonder.co.uk is an example. Does anyone have any suggestions as to how to overcome this please? Thanks, Jeremy
24
5760
by: Robin Cole | last post by:
I'd like a code review if anyone has the time. The code implements a basic skip list library for generic use. I use the following header for debug macros: /* public.h - Public declarations and macros */ #ifndef PUBLIC #define PUBLIC
2
3985
by: Angus | last post by:
I am trying to change the selection in Javascript - but this HTML element is not a standard option control. On the web page it looks like a dropdown list - and you click on the right hand down arrow and you see the entries in a dropdown. But how would I control this thing from javascript? Here is the HTML: <div class="selection" style="top:0; left:89; width:159; height:21;"
1
3371
by: assgar | last post by:
Hi I was using a schroll bar to display multiple rows of dynamically created from database records. The scrolling was not displaying the data properly so I have decided to use pagination. The problem I am having is, if I select one item on page #1 and another on page #5 only the last item selected on page #5 is stored in the array. How can I store selections from multiple pages into one array?
7
14493
by: robtyketto | last post by:
Greetings, I'm slowly building up code to do the following:- Display TWO selection option boxes (cascading). If the FIRST selection option box changes then reload the jsp using onchange event (not changing the option box value on relaod i.e. not re-running the SQL query). ONLY on initial entry should the form FIRST selection option box should be populated using JDBC SQL.
7
5537
by: ammweb | last post by:
How would you validate a page that had several drop down menus. When the submit button is submitted, and NO selection has been made? See code below: <html> <head> </head> <body> <table width="100%" height="500px" border="0" cellpadding="0" cellspacing="0">
3
3238
by: Venturini | last post by:
I am trying to put together a web page where the customer makes choices of products and is then given a total. I am extremely new to Javascript and have managed to get as far as I have from web searches for scripts and html and adapted them. I need to know the principles of how to disable certain options based on other selections within the form. I have attached my script and html below to help. For example of a customer selects (BASIC...
11
2312
by: angelicdevil | last post by:
ok this is wat i was trying to do...i have a list field with options A,B,P now i want the second list field to show data list by getting them from database based on the selection made in listbox1. e.g if i select A in listbox 1 then listbox 2 should display automatically all the data from database where the status is A. and as i change the seelction it should display different data accordingly. but in my code it doesnt display any data...
0
8474
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
8912
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
8597
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
7428
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6222
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5692
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();...
1
2809
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
2049
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1807
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.