Re: select onchange with typing in Webkit



Chris Riesbeck wrote:
dhtml wrote:
Chris Riesbeck wrote:
Toy example at

http://www.cs.northwestern.edu/~riesbeck/demo/menutest.html
Focus the select and type 's'.

Result:

Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18
(KHTML, like Gecko) Version/3.1.2 Safari/525.22

'shoe' is selected, onchange does not fire

Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/527.3+
(KHTML, like Gecko) Version/3.1.2 Safari/525.22

'shoe' is selected, onchange fires

Same version, but "AppleWebKit/527.3+" it works.

Garrett

Though that behavior, while shared by IE, FF and Opera, isn't required by
the standard, I think.

You are mistaken.

The W3C site

That *is* the standard, not just a "W3C site".

just says that when focus is lost, and the selection has changed, then it
should fire.

And the element did not lose focus, did it?

To get changes as you type, portably, I think I need to have an onkey
event, and live with the fact that in some browsers I get both the onkey
and onchange events.

Or this bug could simply be fixed in WebKit so as to comply with the
standard and make this feature interoperable again.


PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$8300dec7@xxxxxxxxxxxxxxxx>
.



Relevant Pages

  • Re: select onchange with typing in Webkit
    ... 'shoe' is selected, onchange does not fire ... should fire. ... including the WebKit DOM (with the exception of prefix selection, ...
    (comp.lang.javascript)
  • Re: select onchange with typing in Webkit
    ... 'shoe' is selected, onchange does not fire ... The W3C site just says that when focus is lost, and the selection has changed, then it should fire. ...
    (comp.lang.javascript)
  • Re: select onchange with typing in Webkit
    ... 'shoe' is selected, onchange does not fire ... The W3C site just says that when focus is lost, and the selection has changed, then it should fire. ... clicking and selecting ...
    (comp.lang.javascript)
  • Re: select onchange with typing in Webkit
    ... (KHTML, like Gecko) ... 'shoe' is selected, onchange does not fire ... should fire. ...
    (comp.lang.javascript)
  • Re: cannot fire up dropdownlists SelectedIndexChanged
    ... Yes, i've done that, but still cannot fire up, there is a javascript ... onChange on this dropdownlist, i wonder it will affect this. ... >> Is there any other way can override this event, ...
    (microsoft.public.dotnet.framework.aspnet)

Loading