Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #31356

Re: Intercept radio onclick event

From wmgill <webworker1950@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: Intercept radio onclick event
Date 2016-09-13 10:27 -0400
Organization A noiseless patient Spider
Message-ID <nr92cr$kpq$1@dont-email.me> (permalink)
References <nr6ja2$dqc$1@dont-email.me> <nr8u8i$6na$1@dont-email.me> <nr8var$1e8$1@solani.org>

Show all headers | View raw


On 9/13/2016 9:35 AM, Christoph M. Becker wrote:
>
> 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.
>
Considered, and dismissed. I have seen numerous admonitions against 
relying on the change event, primarily because of browser differences in 
interpretation of the what and when of change.

Additionally I don't see how it could work unless I test and save the 
selected state of the group so that I can restore it later if necessary. 
If I have to loop through the radios; record which is selected; then 
reselect if necessary, I can use a couple different triggers.  I was 
hoping I could intercept the process early enough that nothing toggles 
until the user confirms the action. That may not be possible, or it may 
mean creating a new event listener.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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