Re: select onchange with typing in Webkit
- From: Thomas 'PointedEars' Lahn <PointedEars@xxxxxx>
- Date: Fri, 10 Oct 2008 22:41:38 +0200
Chris Riesbeck wrote:
dhtml wrote:
Chris Riesbeck wrote:
Toy example atFocus the select and type 's'.
http://www.cs.northwestern.edu/~riesbeck/demo/menutest.html
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>
.
- Follow-Ups:
- Re: select onchange with typing in Webkit
- From: Chris Riesbeck
- Re: select onchange with typing in Webkit
- References:
- select onchange with typing in Webkit
- From: Chris Riesbeck
- Re: select onchange with typing in Webkit
- From: dhtml
- Re: select onchange with typing in Webkit
- From: Chris Riesbeck
- select onchange with typing in Webkit
- Prev by Date: Re: Closures Explained
- Next by Date: Re: FAQ Topic - What books cover EcmaScript? (2008-10-08)
- Previous by thread: Re: select onchange with typing in Webkit
- Next by thread: Re: select onchange with typing in Webkit
- Index(es):
Relevant Pages
|
Loading