473,769 Members | 5,787 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2368
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.javas cript 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.co m 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
3106
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 the item. Any ideas? many thnx,
5
8319
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 than having to click on the (possibly small) box or button. I recently tried to assign a label to a select "drop down list", but found that when I clicked on the label text to bring it into focus, the select box was reset to the first entry. ...
4
6791
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 allow IE to show different font styles for different elements in a select list?
5
1557
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 use for the following situation? I have a <select> list with dynamically generated options. Latest when I have changed the (pre-) selected option and loose the focus of the select-list I want to run a function to find out about the newly
3
2991
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 ? I want to write a javascript function that can
7
6285
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" onchange="handleProblemChange();" runat="server"> If I do this, I get client-side javascript errors because the id "MyPulldown" doesn't exist. It's been mangled into this crazy-named thing that I can't use. How do I fix this so that the ID that I give it ends up being...
2
1663
by: PW | last post by:
Is it possible to make a select list item red based on a condition ? TIA, PW
11
4511
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 rows inserted/sec up to 500, and 100rows/6secs up to 3000, which isn't great but then the Row Count is clicking away for the user to see and they can hit the "cancel" button at anytime, so overall I'm happy), what really disappoints me is the...
0
9423
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10210
Oralloy
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...
1
9990
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,...
0
8869
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7406
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5445
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3955
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
2
3560
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2814
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 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...

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.