I asked this before but did not get far. How do you prevent the mouse wheel when used for scrolling down a form from rolling down combo values if focus happens to be on one. Thanks
In standards compliant browsers (IE might have some sort of option), there is no way of doing this without resorting to JavaScript. However, I think that using mouse wheel on the combo box is a common functionality that most users expect and I for one would not like it if a website would prevent me from using that functionality. What you think is the best for the users is not always what they think is best. A safe bet is letting the user decide. If they want to scroll in combo boxes via mouse wheel, let them, if they don't they won't do it.
Thanks. The problem being a user selects a combo, uses his mouse to select a value. They then try and use the wheel to scroll down the page and do not notice in the sequence of clicking back on the form to get focus, that they have amended the combo value!!
If you could direct the focus back to the form after making a combo selection would solve it. I suppose a button could be next to each combo to confirm the selection made, which in turn moves the focus away, don't know. Oh what fun!!
Just a thought as an alternative approach. Why not implement a dynamic select. This way once an option was chosen in the select box (regardless of accident or on purpose), you could have confirmation message before the user continues... "Thank you for selecting..."
This way the user knows what they chose before continuing.
IMHO, having a confirmation would be even more annoying.
Personally, I learn from my mistakes. Let the users do the same. The first time they submit the wrong values, tell them why. They shouldn't make a habit of it (and if they do, they clearly have no capacity to learn from their mistakes).
Thanks both of you. I do like Xaqte's thought of a messagebox popping up with an Okay button on it. That would take focus away and confirm what they selected. While they have a mouse in their hand it wouldn't be too much to ask of them, and prevent errors/phonecalls. I have never tried creating a message box before, modal type as well? I do not want to use java if I can help it! Regards
You will have to use JavaScript to create a conformation box. It is pretty simple, but plain html has no such capabilities. I still think your best bet is to let it be.
Personally, like Dan, I'd say leave it alone. You have more important ways to spend time on your site than obsessing on such details. Pop-up boxes in particular are likely to irritate the bejesus out of your visitors.
If you insist on pusuing this, it should be possible to move the focus to some other part of the form when an option is selected, without any popup being involved. I don't speak Javascript well, but something along these lines...
Be warned, this may be bad for your site's accessibility, as keyboard users will find it difficult to retain focus on the select box to change it. A lot of people like to use the keyboard to enter forms.
I built a simple DB GUI for a client, and fully expected to have a few problems, But all the office staff who had to use it were all aware that if they used the scroll wheel they had to click the page after selecting.
Just seemed like it was only me that had any issue. But then I just build 'em, not use them every day.
Sorry I did not get back until now. No need to toss coins, and thanks for the overwhelming answers. YOUR ALL WINNERS. If the user is stupid enough to see what he's done then it's up to them. Washing my hands and saying a big thankyou and stars all round. That should brighten the forum up!!
Have a confirmation page where you list up all the options the user's selected and ask him to confirm. You can also add some "common reasons for selecting wrong" or the like underneath.
btw, fyi and all that, and because I like to stir things up...
onmousewheel="return false" in your select tag will do some sort of job for you
Hope I helped / Thanks for helping
if ((Math.abs(x)<10&&Math.abs<10) && (((parseInt(Math.abs(x).toString()+Math.abs.toString())-Math.abs(x)-Math.abs)%9)!=0)) {alert("I'm a monkey's uncle"}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.