Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #31355
| Path | csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Intercept radio onclick event |
| Date | Tue, 13 Sep 2016 15:35:36 +0200 |
| Organization | solani.org |
| Lines | 21 |
| Message-ID | <nr8var$1e8$1@solani.org> (permalink) |
| References | <nr6ja2$dqc$1@dont-email.me> <nr8u8i$6na$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | solani.org 1473773723 1480 eJwFwQERADEIAzBL29EWkMPz4F/CEpqu2iEKXO6fEXNrTrGyTBh6p2uRm/Rq/xDnrGcFZP0AIDoQ9g== (13 Sep 2016 13:35:23 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Tue, 13 Sep 2016 13:35:23 +0000 (UTC) |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
| In-Reply-To | <nr8u8i$6na$1@dont-email.me> |
| X-NNTP-Posting-Host | eJwFwYEBwCAIA7CXxNLizgGR/09YQsh0w0U5h5N9vxfpVPd5C1F5zJkdrHyuxQFR2rEBA38rphDL |
| Cancel-Lock | sha1:np1jciweKVCkYRySmUXVrkKwoW4= |
| X-User-ID | eJwNxUkBwDAIBEBLEGBT5HD6l5DOZ0zAqKswqK0tiNF3Yhx17Ex3WujtpL+VzE/Kg5ZTx738ASoBEcI= |
| Xref | csiph.com comp.lang.javascript:31355 |
Show key headers only | View raw
On 13.09.2016 at 15:17, wmgill wrote: > On 9/12/2016 11:58 AM, wmgill wrote: > >> Is there a way to intercept a radio button onclick event and pass it >> through a confirmation process before allowing it to proceed or >> cancelling it? I have found several solutions that propose to do this, >> but in fact they just set or reset the radio's checked property, which >> doesn't reset any other radio button in the group to original state. > > I seem to be catching the onclick event, but not early enough in the > process. So I still need some help in a couple areas. > > Any insights as to what is going on, and how to correct it? Have you considered to use the change event instead of a the click event? See <https://developer.mozilla.org/en-US/docs/Web/Events/change>, for instance. -- Christoph M. Becker
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Intercept radio onclick event wmgill <webworker1950@gmail.com> - 2016-09-12 11:58 -0400
Re: Intercept radio onclick event wmgill <webworker1950@gmail.com> - 2016-09-13 09:17 -0400
Re: Intercept radio onclick event "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-09-13 15:35 +0200
Re: Intercept radio onclick event wmgill <webworker1950@gmail.com> - 2016-09-13 10:27 -0400
Re: Intercept radio onclick event Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-09-13 16:58 +0200
Intercept radio onclick event Ram Tobolski <ramtob@gmail.com> - 2016-09-13 11:38 -0700
Re: Intercept radio onclick event wmgill <webworker1950@gmail.com> - 2016-09-13 15:53 -0400
csiph-web