473,398 Members | 2,125 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,398 software developers and data experts.

combobox

Hi
I have a simple form that just contains 1 combobox with several options.
There is no onSelect event that I can handle, right?
How can I implement this? The user selects one option and a new pops up...
When user select same option a new must pop up.

Frank
Jul 23 '05 #1
4 3092
On Wed, 18 Aug 2004 09:17:37 +0200, Dropstengel <ik@haat.spam> wrote:

I'll spare you the lecture of why pop-ups are bad. I'm sure you already
know it.
I have a simple form that just contains 1 combobox with several options.
There is no onSelect event that I can handle, right?
The select event is fired when the user selects text. The usual change and
click events apply to SELECT elements.
How can I implement this? The user selects one option and a new pops
up...
When user select same option a new must pop up.


Don't do that. The only elements that should cause an action, such as
navigation, are buttons. The user doesn't usually expect something to
happen just by selecting a value from a list.

In addition, just because the user has made a selection doesn't mean
that's actually their chosen value. Why? Users make mistakes. Moreover,
there are more ways to select from a SELECT element than just clicking a
value. Once the element has focus, the user can press a key to jump to the
first option that begins with that letter. In a list of countries, for
example, that first option is not likely to be the final choice. The user
can also use the cursor keys and the mouse wheel to scroll through the
list. Each one of these situations will act like a selection, but none of
them will be.

The solution? Use a button. Not only will this activate irrespective of
whether the value has changed, but it also provides a more concrete
interface.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail
Jul 23 '05 #2

"Michael Winter" <M.******@blueyonder.co.invalid> wrote in message
news:opscw674six13kvk@atlantis...
On Wed, 18 Aug 2004 09:17:37 +0200, Dropstengel <ik@haat.spam> wrote:

I'll spare you the lecture of why pop-ups are bad. I'm sure you already
know it.
I have a simple form that just contains 1 combobox with several options.
There is no onSelect event that I can handle, right?


The select event is fired when the user selects text. The usual change and
click events apply to SELECT elements.
How can I implement this? The user selects one option and a new pops
up...
When user select same option a new must pop up.


Don't do that. The only elements that should cause an action, such as
navigation, are buttons. The user doesn't usually expect something to
happen just by selecting a value from a list.

In addition, just because the user has made a selection doesn't mean
that's actually their chosen value. Why? Users make mistakes. Moreover,
there are more ways to select from a SELECT element than just clicking a
value. Once the element has focus, the user can press a key to jump to the
first option that begins with that letter. In a list of countries, for
example, that first option is not likely to be the final choice. The user
can also use the cursor keys and the mouse wheel to scroll through the
list. Each one of these situations will act like a selection, but none of
them will be.

The solution? Use a button. Not only will this activate irrespective of
whether the value has changed, but it also provides a more concrete
interface.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail


Thanks, I completely agree (I normally develop C++ applications for Windows
where UI forms about 60% of the whole application).
But, for my sister in law I'm writing some JavaScript code because it's part
of her study. And that excersise tells me to do this strange behaviour.....

Frank
Jul 23 '05 #3
On Wed, 18 Aug 2004 12:09:00 +0200, Dropstengel <ik@haat.spam> wrote:

[snipped lecture on usability]
Thanks, I completely agree (I normally develop C++ applications for
Windows where UI forms about 60% of the whole application).
Yes, I know. It's a pain in the ass. :)
But, for my sister in law I'm writing some JavaScript code because it's
part of her study. And that excersise tells me to do this strange
behaviour.....


In that case, using the click event is probably the best way to go so that
the event fires on every selection.

I hope this "study" isn't a web design course. If it is, it's teaching bad
practice.

Good luck to you both,
Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail
Jul 23 '05 #4

"Michael Winter" <M.******@blueyonder.co.invalid> wrote in message
news:opscxb5pvzx13kvk@atlantis...
On Wed, 18 Aug 2004 12:09:00 +0200, Dropstengel <ik@haat.spam> wrote:

I hope this "study" isn't a web design course. If it is, it's teaching bad
practice.
No, something like "Informationservice-and management"
(Informatiedienstverlening en management in Dutch).
Horrible...

Good luck to you both,
Mike

Frank
Jul 23 '05 #5

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

Similar topics

13
by: Mr. B | last post by:
Here's the situation... You've a combobox with Items already added. Say they look like this (or even lines of text): 10-00-232 10-00-256 10-01-006 10-01-213 10-02-200
7
by: Nicolae Fieraru | last post by:
Hi All, I am trying to change the rowsource of a combobox when I click on it. I played with many events, associated with the form and the combobox, but still haven't figured out what is the way...
8
by: Zlatko Matię | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the...
1
by: anonymous | last post by:
I've been trying to put a them, please help me out. Here's the major parts of my code: public Form1() { DataSet myDataSet = new DataSet("myDataSet"); DataTable testTable = new...
3
by: TT (Tom Tempelaere) | last post by:
Hay there, I'm writing my own DataGridComboBoxColumn because .NET 1.1 does not have one (I hope .NET 2.0 supplies one). I based it on this article:...
2
by: Don | last post by:
I've looked high and low for some code that will allow me to have a combobox with a flat borderstyle. I found a few examples, but nothing that was really usable for me. I had the following...
4
by: jon f kaminsky | last post by:
Hi- I've seen this problem discussed a jillion times but I cannot seem to implement any advice that makes it work. I am porting a large project from VB6 to .NET. The issue is using the combo box...
6
by: dbuchanan | last post by:
VS2005 I've been reading all the help I can on the topic (MSDN, other) but I can't make sense of this. Desired behavior; The user is to choose from the displayed list of the databound combobox...
1
by: polocar | last post by:
Ciao a tutti, leggendo qua e lą per il forum ho scoperto che non sono l'unico ad avere questo problema. Se si inserisce un controllo ComboBox in un form di C#, non č possibile impostare la sua...
5
by: Rich | last post by:
Hello, I have a search application to search data in tables in a database (3 sql server tables). I populate 2 comboboxes with with data from each table. One combobox will contain unique...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
0
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
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...

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.