Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #38502
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!james.kirk.invalid!.POSTED!not-for-mail |
|---|---|
| From | James Kirk <noneya.invalid@gmail.com> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: on change trigger |
| Date | Sun, 12 Jul 2020 13:17:11 -0400 |
| Organization | Time Travel Tracing |
| Lines | 52 |
| Message-ID | <20200712131711.574e32ad@james.kirk.invalid> (permalink) |
| References | <jOqdnV3ui7CoRJrCnZ2dnUU7-RHNnZ2d@westnet.com.au> <hn0qjdFo95rU1@mid.individual.net> |
| Reply-To | ": James Kirk" <noneya.invalid+knobknocker@gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Info | james.kirk.invalid; posting-host="c08180a960b8a3d2b856367e586838fb"; logging-data="27590"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/hgMIh+dlV1iuOL5xgrKJjA2IW1FVUbz4=" |
| User-Agent | Unicorn named Ellie |
| Cancel-Lock | sha1:ti0wh6lWAyHwceGforeDRrVEcsU= |
| X-Rot13 | This message MAY contains rot13 encoded text that sensitive people may find offense, decode at your own peril. |
| X-Newsreader | Microsoft Windows Dead Mail Original Imitation Prototype |
| Content-Language | en-US |
| Face | iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4QIHFgQpyK6L9AAAAEJQTFRFAAAAQAAAQEAAQEBAQECAgEBAgECAgIBAgICAgIC/gL+/v4BAv4CAv4C/v7+Av7+/v7//v////7+A/7+///+/////CTpitwAAAAF0Uk5TAEDm2GYAAAABYktHRBXl2PmjAAAB6klEQVRIx61Vi3KEIAz0pJZYUwIi//+r3QT78sTKTDM3N6e3y+5iIsPwT+UcdeHJOSd9Ao6kVyB2CqQkfQKpSI+AS6lDQh2VDoIzR6jYQVCBuymo7tH9EF+OUrwnAfxLFSjp/aajuZTbnujbUYop/dWz7P1kDyFWS4lYLuETyrs5VUKMSTyHthvFe/ZwFD8tRQ68SNvOxFlGh8hFl48oCoF9aOC9l23jB6n5GMHBR1gZfI7nvG2bf0hUL2YLNCWwf3Ilnip+Q2cX86+G8FM9MU/PgcmHDIaMZG6wflGKegLhyZQn4oxCBKlxTaHGBmHxz45ECRkRFFpX1+9UCQdPzHikRtBRiD8rzacEQjbFh5HKjixSzJco/kgQomyM5THvAoKFxXaLzgj40wj2FNSI2NW7pdbM/ritlbBOLu3rm0EnshOO3cHIAEZAIwG949ewvOqFX467ahIIsfJIltN2bF1XngQa/qxhWQkBEUTXzJWAGzCFKeKzaVDGpJllNwR84IlEiM/nIWRG54ERKrwSIDE3Jg57O7ooiVetYIX5o9gca2KcOzAUdnRtbEhcvMKAp/CrriTsoCKM2JenPAwzbr5dKWgYxUr+PoEvCCfq1DyBIf4iPYc8NQ5naUlQeynqJLRf9Z2E4cb58QHWYi4v2VmiigAAAABJRU5ErkJggg== |
| X-Operating-System | Windows 3.0 |
| Xref | csiph.com comp.lang.javascript:38502 |
Show key headers only | View raw
In Message: <hn0qjdFo95rU1@mid.individual.net> Arno Welzel <usenet@arnowelzel.de> wrote: > Andrew Poulos: >> It seems that dispatching an event to an input within a form >> doesn't trigger the onchange event for the form: [snip] >> Is that the expected behaviour? > The expected behaviour is, that the event is fired when you changed > the input *and* the input loses the focus. It will not fired while > typing something to the input. d̲i̲s̲p̲a̲t̲c̲h̲i̲n̲g̲ ̲a̲n̲ ̲e̲v̲e̲n̲t̲? 𝐓𝐡𝐞 𝐜𝐡𝐚𝐧𝐠𝐞 𝐞v𝐞𝐧𝐭 𝐢𝐬 𝐟𝐢𝐫𝐞𝐝 … https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event#wikiArticle ¦ The change event is fired for <input>, <select>, and <textarea> ¦ elements when an alteration to the element's value is committed ¦ by the user. ¦ Depending on the kind of element being changed and the way the ¦ user interacts with the element, the change event fires at a ¦ different moment: ¦ • When the element is :checked (by clicking or using the ¦ keyboard) for <input type="radio"> and <input type="checkbox">; ¦ • When the user commits the change explicitly (e.g., by ¦ selecting a value from a <select>'s dropdown with a mouse ¦ click, by selecting a date from a date picker for <input ¦ type="date">, by selecting a file in the file picker for ¦ <input type="file">, etc.); ¦ • When the element loses focus after its value was changed, but ¦ not commited (e.g., after editing the value of <textarea> or ¦ <input type="text">). ¦ The HTML specification lists the <input> types that should fire ¦ the change event. https://html.spec.whatwg.org/multipage/input.html#concept-input-apply -- James Kirk
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
on change trigger Andrew Poulos <ap_prog@hotmail.com> - 2020-07-10 12:57 +1000
Re: on change trigger JJ <jj4public@vfemail.net> - 2020-07-10 16:03 +0700
Re: on change trigger James Kirk <noneya.invalid@gmail.com> - 2020-07-10 11:14 -0400
Re: on change trigger Julio Di Egidio <julio@diegidio.name> - 2020-07-10 23:33 -0700
Re: on change trigger "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-07-11 17:52 -0700
Re: on change trigger Andrew Poulos <ap_prog@hotmail.com> - 2020-07-12 13:44 +1000
Re: on change trigger Arno Welzel <usenet@arnowelzel.de> - 2020-07-12 18:03 +0200
Re: on change trigger James Kirk <noneya.invalid@gmail.com> - 2020-07-12 13:17 -0400
Re: on change trigger Arno Welzel <usenet@arnowelzel.de> - 2020-07-13 17:24 +0200
Re: on change trigger James Kirk <noneya.invalid@gmail.com> - 2020-07-13 13:35 -0400
Re: on change trigger Arno Welzel <usenet@arnowelzel.de> - 2020-07-14 16:24 +0200
csiph-web