473,569 Members | 2,522 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I need "Select"(size=1 ) to show scrollbar when clicking down arrow

Dear all,

I have one select which lists one visible element. I want this select
can show scrollbar after I click its down arrow, so that i can use the
scrollbar to select the element i want.

I test it on windows IE. The scrollbar will be shown when the select
has more than 30 elements, otherwise it won't show scrollbar. I don't
want the list to be that long. I hope that the scrollbar can be shown
when the number of elements is 8.

I don't know if there is a simple way to solve this problem.

I really appreciate for the help!!!

Jenny

Aug 16 '07 #1
1 5319
Scripsit Jenny:
I have one select which lists one visible element. I want this select
can show scrollbar after I click its down arrow, so that i can use the
scrollbar to select the element i want.
Why? Graphic browsers normally show a box where an item can be selected
without scrolling.
I test it on windows IE. The scrollbar will be shown when the select
has more than 30 elements, otherwise it won't show scrollbar. I don't
want the list to be that long. I hope that the scrollbar can be shown
when the number of elements is 8.
That's browser's user interface and beyond your control as an author.

Yet I don't see why you want to enforce a scrolling mechanism when none is
needed.
I don't know if there is a simple way to solve this problem.
There are simple ways to avoid creating the problem. Use a list of radio
buttons or a text input field, if you have a real data entry form. Use a
list of links, if the select element is just a surrogate for a menu of
links. A choice between these depends on the original problem, which was not
disclosed at all. What do you use the select element for, really?

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Aug 16 '07 #2

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

Similar topics

23
5650
by: ian justice | last post by:
Before i post actual code, as i need a speedyish reply. Can i first ask if anyone knows off the top of their head, if there is a likely obvious cause to the following problem. For the moment i've reduced my form request to a simple text string entry, instead of my desired optional parameters. As i have been stuck with a single unfathomable...
16
2472
by: lkrubner | last post by:
Are there any benchmarks on how much an extra, unneeded VARCHAR, CHAR, INT, BIGINT, TEXT or MEDIUMTEXT slows down a database call with MySql? PostGre info would also be useful. I'm trying to explain to some friends the utility of making database calls return only needed data. As an example of what I'm talking about, suppose we had a...
4
8403
by: Matt | last post by:
In ASP page, there is a "SELECT ALL" button, when user click it, it will select all checkboxes. I am not sure should I use client-side code to do that? the following is my approach but it didnt work. <script language="JavaScript"> function selectAllCheckBox() { //alert(document.addzone.c1.value); document.addzone.c1.value = "on"; }...
0
1917
by: Michael | last post by:
I have a problem forcing files to download. If I select Save the document is saved with no problems. If I select "Open" the document is empty or I get a "File not found" error from the application opening the file... Code: function UTIL_ForceDownloadFile(strFileName, strFileSaveName) Response.Buffer = True Dim strFileSize Const...
10
5594
by: serge | last post by:
Using "SELECT * " is a bad practice even when using a VIEW instead of a table? I have some stored procedures that are identical with the difference of one statement in the WHERE clause. If I create a single View and specify also in this View the WHERE clause that is common in these stored procedures, I will have the new stored procecures...
1
1252
by: quickcur | last post by:
I have a form in my html and a <select> inside the form. I did no specify the width of the <select>. Since one of the options in the select has a very long text, the <select> filed takes a lot of space in the page. Can I specify the width of the select? I want to make it samller in the page, but when the user click the pull down list, the who...
3
2916
by: Jimmy | last post by:
I use a combo box to filter the results of a form. Sql for combo box is... SELECT StatusPriority, Status FROM tblStatus UNION Select = 0 as AllChoice, "Show All" as Bogus From tblStatus ORDER BY StatusPriority; AfterUpdate code from combo box is... If Me! = 0 Then DoCmd.ShowAllRecords Else
0
2899
by: mafandon | last post by:
Hello all... My application uses custom reports from Microsoft's report viewer and not Crystal Reports. My understanding is there is no way to make the printdialog select a different printer than the default via code, right? So - here's what I have my app doing to fix the issue - There's a form the user can load that performs the...
1
1050
by: Jenny | last post by:
Dear all, I have one select which lists one visible element. I want this select can show scrollbar after I click its down arrow, so that i can use the scrollbar to select the element i want. I test it on windows IE. The scrollbar will be shown when the select has more than 30 elements, otherwise it won't show scrollbar. I don't want the...
0
7615
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7677
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...
0
7979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
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...
1
5514
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...
0
5219
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...
0
3643
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2115
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
1
1223
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.