1 March 2006
IE, select fields and the mousewheel
Should you be allowed to use a scroll wheel to scroll thru the choices of a select field? It looks like you can't in Firefox but IE lets you. This has never bothered me till today when I needed to disable it for *certain* select fields. A .Net application my team is currently working on allows for a post-back to the server on the 'onchange' event of a select field. Everything works fine if you click on the dropdown and then select your choice. However, if you use your scroll wheel on your mouse to scroll thru the choices, then several post-back requests gets triggered all at once causing all sorts of problems. Turns out the simple and easy fix is to add onmousewheel="return false;" as an attribute to your select field. The onmousewheel event is a Microsoft proprietary event but since that's the only browser that has this quirk, I can live with it. Gotta love IE for all the work it gives me. Too bad I'm not a consultant and can charge by the hour for fixing bugs like these. :-)
{ Link }
Not what you are looking for....but this guy has an idea that jumps to the next field when a selection is made, preventing the user from accidentally scrolling thru the dropdown.
{ Link }
This guy changes the focus off of the dropdown field.
Old thread but maybe these will give you ideas if you havn;t figured it out yet.
You know I dont know what I am talking about and am just grasping at straws! ;)