472,993 Members | 2,472 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,993 software developers and data experts.

specify selection list height??

n8kindt
221 100+
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 6442
acoder
16,027 Expert Mod 8TB
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 100+
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 Expert Mod 8TB
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 100+
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 Expert Mod 8TB
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
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...
24
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...
2
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...
1
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...
7
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...
7
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...
3
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...
11
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. ...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

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.