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... - <select name="17286_qty" id="17286_qty" onChange="document.cart.submit()">
-
<option value="0">Delete</option>
-
<option value="1" selected>1</option>
-
<option value="2">2</option>
-
-
<option value="3">3</option>
-
<option value="4">4</option>
-
<option value="5">5</option>
-
<option value="6">6</option>
-
<option value="7">7</option>
-
<option value="8">8</option>
-
-
<option value="9">9</option>
-
<option value="10">10</option>
-
<option value="11">11</option>
-
</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
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).
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...
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.
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
acoder 16,027
Recognized Expert Moderator MVP
Yes, an input box would be much better. Glad you got it working without too much trouble.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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
|
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
|
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;"
|
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?
|
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.
| |
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">
|
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...
|
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...
|
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...
|
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...
|
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,...
| |
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...
|
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...
|
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();...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |