473,287 Members | 1,588 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

autoexpand <select> list

VK
I'm looking for autoexpand <select> list onfocus and collapse it back
onselect/onblur (the list is select-one type)

I know it is not possible directly, but I've seen here a hack by
changing dynamically position static/absolute and sel.size - cannot
google it out though.

Also some GNU/copyleft widget would be equally great.

Dec 28 '05 #1
4 2332
VK said the following on 12/27/2005 7:01 PM:
I'm looking for autoexpand <select> list onfocus and collapse it back
onselect/onblur (the list is select-one type)

I know it is not possible directly, but I've seen here a hack by
changing dynamically position static/absolute and sel.size - cannot
google it out though.

Also some GNU/copyleft widget would be equally great.


Change its type from single to multiple and back again.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Dec 28 '05 #2
VK

Randy Webb wrote:
Change its type from single to multiple and back again.


w/o breaking surrounging layout?
Full disclosure: zero-level PC-users of average-high age - the most
difficult case I met for several years :-(
You should see what are they doing with the mouse! A circle is a line
in comparison. I want to make the interface as mouseless as possible
(hitting the right keys is overall doable by them).

Either I can make the conventional <select> to expand/collapse on
focus/blur or I need to write a DHTML pseudo-select widget (unless
already written).

Dec 28 '05 #3

VK napisal(a):
Randy Webb wrote:
Change its type from single to multiple and back again.


Either I can make the conventional <select> to expand/collapse on
focus/blur or I need to write a DHTML pseudo-select widget (unless
already written).


What about making a simple "multiple" and remove all the old selections
whenever a new one is made?

Dec 28 '05 #4
VK

bw****@gmail.com wrote:
What about making a simple "multiple" and remove all the old selections
whenever a new one is made?


No, it is not a problem to make multiple choices from one <select>.

This is select-one list(s).
<select size="1">

Two major problems:
1) The idea that the there are *more* options than the one you're
currently seeing (just scroll with arrow keys) is *not the obvious
one*. Also the idea that if the option you're seeing is white on blue
that it is in focus so you can scroll with arrows keys for more
options. Together it brings a complex intellectual challenge I would
need to clear to each user.

2) You need to click on <select> to open it. You can just scroll with
arrow keys but then you see only one option at the time, so you don't
see neither what options do you have in whole nor you remember that did
you scroll out.
I see some mouse clicks made and I don't want to see them anymore. It's
like a guy coming from the pub at Saturday night: with all possible
curbes and circles around wrong fields, <reset> and <submit>.

I want to stress out that these are not some mental cases - just people
with not PC experience. A valuable possibility to look fresh at things
we used to take for given by the way.

Any way, instead of organizing Top Mouse crash courses I would like to
have anything working as select-one list expanding onfocus and
collapsing onselect/onblur. I'm currently thinking of a DHTML menu
variant (actual selection could be kept in hidden form field) unless
there is something less complicated but reliable.

P.S. Having all select.size == select.length is ruled out as some lists
are pretty long plus the whole page gets too huge and complicated.

Dec 28 '05 #5

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

Similar topics

3
by: K. Lobe | last post by:
list box based on a POST method to the same page. frm.cmbList.Value=Request.Form("cmbList") doesn't work. When the page loads, it reloads the <SELECT>, so not sure how to get the list to go to...
5
by: Brian Foley | last post by:
Hello, I am used to using the label tag with check boxes and radio buttons in html forms. This allows me to click on the text of the label to activate/deactivate the check box / button, rather...
4
by: Glen K | last post by:
The following works in Firefox buy not in Internet Explorer: <select> <option> option1 </option> <option style="font-style: bold"> option2 </option> </select> Are there any workarounds to...
5
by: andreas.maurer1971 | last post by:
Hi everybody, I nearly get despaired of the fact that the events I chose and, according to the MSDN site, are correct, don't fire reliable in IE6. Is someone able to tell me, which events I can...
3
by: veg_all | last post by:
Say I have: <select> <option value='a' > First <option value='b' > Second <option value='c' > Third </select> Is there a way I can access the values First, Second and Third from an array ?...
7
by: Alex Maghen | last post by:
I have some client-side JavaScript that I want to run whenever a pulldown <SELECT> is changes on th client. I'm trying to do this as follows... <select id="MyPulldown"...
2
by: PW | last post by:
Is it possible to make a select list item red based on a condition ? TIA, PW
11
by: Richard Maher | last post by:
Hi, I have read many of the copius entries on the subject of IE performance (or the lack thereof) when populating Select Lists. I don't mind the insert performance so much, (I get 100x120byte...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...

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.