[Javascript] AJAX Question re Chrome

rich gray rich at richgray.com
Fri Jul 19 11:30:37 CDT 2013


On 18/07/2013 19:36, Mike Dougherty wrote:
> On Thu, Jul 18, 2013 at 1:13 PM, rich gray <rich at richgray.com> wrote:
>> Hi Tedd
>> Have you tried it with the onChange event instead of onClick ?
>> HTH
>> Rich
> be aware that onChange will fire when you are using the keyboard to
> (down,down,down... etc.) to scroll through the values.  It might not
> matter if you have only a few option elements and/or you have a very
> lightweight event handler - but otherwise you could be causing a bit
> of pain for keyboard users (who generally use keyboard to be faster
> than mousing)
>
> if/when you get frustrated enough with it, you might end up rolling a
> select-replacement :)
>
I guess within the onChange handler a check for onKeyPress / onKeyDown / 
textInput (webkit only) could be made and if any returns true then 
return without firing off the AJAX call ... maybe?


More information about the Javascript mailing list