Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] When should an "onChange" event actually change?
- Date: Tue, 17 Aug 2010 15:23:56 +0900
- From: Darren Cook <darren@example.com>
- Subject: Re: [tlug] When should an "onChange" event actually change?
- References: <4C6A237B.9030208@example.com>
- User-agent: Thunderbird 2.0.0.24 (X11/20100317)
> It's as if "onChange" is behaving like what you might call a "mouse > out", or an "onChangeOfFocus". I thought "onChange" mean whenever you > changed the content of the text field. I think you need to be looking at key presses instead. E.g. http://joshualay.net/blog/2010/02/visual-feedback-with-jquery/ (But note: he has a typo in handling the 2nd condition.) Also, change() is different between browsers. E.g. for checkboxes firefox/safari will send a change event when it is clicked, but IE won't until the checkbox has lost focus. (So, in that case, use the "click" event instead.) (*) Darren *: E.g. see p.118 of JQuery in Action. -- Darren Cook, Software Researcher/Developer http://dcook.org/gobet/ (Shodan Go Bet - who will win?) http://dcook.org/work/ (About me and my work) http://dcook.org/blogs.html (My blogs and articles)
- References:
- [tlug] When should an "onChange" event actually change?
- From: Dave M G
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] bash and grep and diff
- Next by Date: Re: [tlug] When should an "onChange" event actually change?
- Previous by thread: Re: [tlug] When should an "onChange" event actually change?
- Next by thread: Re: [tlug] When should an "onChange" event actually change?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links