473,473 Members | 1,826 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

scroll box focus

I have a scroll box that allows multiple selections. Something like:

<select size=4 multiple name=xyz>

Now, when i show the form i default select one of the entries. If
the selected entry is further down the list it won't be seen by
the user. Is there a way i can make the selected entry appear
in the visible portion of the select box??
Jul 20 '05 #1
1 1562
Ivo
"steve farris" <fm*******@yahoo.com> wrote in message
news:dd**************************@posting.google.c om...
I have a scroll box that allows multiple selections. Something like:

<select size=4 multiple name=xyz>

Now, when i show the form i default select one of the entries. If
the selected entry is further down the list it won't be seen by
the user. Is there a way i can make the selected entry appear
in the visible portion of the select box??


Do you pre-select, serverside or clientside? If done serverside, Mozilla
displays the selected fine, just as IE(5) even clientside. I did not get
Mozilla(1.0) to scroll down however, when I had a javascript select a bottom
option. Perhaps add some text in a div next to the select detailing how many
are currently selected (which is never visible so might be appreciated
anyway)

var howmanyselected=0;
var xyz=yourreferenceto.xyz.options;
for( i=xyz.length ; i-- ; )
if( xyz[i].selected )
howmanyselected++;

var s=(howmanyselected==1) ? '' : 's' ;
referenceto.thediv.firstChild.nodeValue=
'Currently '+howmanyselected+' item'+s+' selected.' ;
Jul 20 '05 #2

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

Similar topics

4
by: Mad Scientist Jr | last post by:
I have a textbox that i am adding to (in codebehind of ASP.NET) and need to ensure that the focus is scrolled to the bottom of the textbox each time the page refreshes, and then set focus to a 2nd...
1
by: ernond_paul | last post by:
Hi, I'm trying to have a box with "overflow: auto" in order to print only a few part of a text. I want to have a scroll for this box : that's work fine. But my problem is when I use the Wheel...
6
by: amirkarger | last post by:
I have a simple "quickbrowse" menu that does this: <form> <select name="quickbrowse" onchange="go(this)"> <option selected value="">go to a tool...</option> <option value="#tool1">Great tool...
3
by: Rab | last post by:
Hi I have a TextBox on my form with Enable=False and Lock=True which needs to display comments but not allow the user to edit it. Since some comments are long, I need a scroll bar to allow the...
1
by: Keltus | last post by:
Hello, I have a Form with a ListBox in it. I'd like to be able to scroll the ListBox even when it's not in focus. ie. when i scroll the mousewheel when my focus is on the form, I'd like the...
1
by: JC | last post by:
I'm sure you've all seen the save scroll position from 4 guys from rolla which can be found here > http://aspnet.4guysfromrolla.com/articles/111704-1.aspx BUT try to get that to work AND still be...
8
by: rodchar | last post by:
hey all, can someone please tell me if you can disable the scroll button for a dropdownlist. For example, when you select an item in a dropdownlist and it still has focus and you accidently hit...
2
by: JonnyT | last post by:
I searched high and low for an answer on how to auto scroll a richtextbox and now I finally have it. Since it took me a while to get a good efficient way of doing it that didn't require focus to...
1
by: Axeman | last post by:
I have an AJAX enabled web form with several data-filled GridView controls. The users accessing this web app will navigate the site via touch-screen monitors (i.e.: no mouse). As a result, I need...
0
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,...
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...
1
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
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...
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,...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
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 ...
0
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...

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.