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


Groups > comp.lang.javascript > #32152

Re: onkeyup in Firefox

Path csiph.com!2.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: onkeyup in Firefox
Date Mon, 09 Jan 2017 19:09:58 +0100
Organization PointedEars Software (PES)
Lines 39
Message-ID <2131200.jE0xQCEvom@PointedEars.de> (permalink)
References <edfu3kFkfvbU1@mid.individual.net> <7279249.NyiUUSuA9g@PointedEars.de> <edgj5vFp050U1@mid.individual.net>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1483985434 31928 eJwFwYEBwDAEBMCVEP9kHDT2H6F3OFROOEHHYq9JdTZdW2l8khAM9H1lhpx1L1OtCHQf3B8JTBBd (9 Jan 2017 18:10:34 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Mon, 9 Jan 2017 18:10:34 +0000 (UTC)
User-Agent KNode/4.14.2
X-User-ID eJwFwYkBwCAIBLCVtL2HjoMg+4/QhK+2yhAFDidyGdWxfXChTMOlbl65A35OZA2jRjs/dl2Yj+5pcOX2D16MFdU=
X-Face %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
Cancel-Lock sha1:sFJSRkinLrW7S3oXOoJbP5R5DdY=
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
X-NNTP-Posting-Host eJwFwYkBADAEBLCV1HMYp4r9R2higoPnCoPa2tadBwQz3EaK4mi3eLQU501w1uzQpV6bYf0eGhFm
Xref csiph.com comp.lang.javascript:32152

Show key headers only | View raw


Mel Smith wrote:

> Also, I did quite a bit of google searching. Many others complained of
> "onkeyup" not executing a specific function with Firefox

And you do not even remember what the "function" was, right?  But "many 
others" said Firefox was the problem, therefore you just believed it.
Cargo cult programming.

Probably it was a this.focus() _method_ call (or equivalent), and probably 
those people were attempting to force the user to type something in that 
field because it was "required".  Such script-kiddie approaches to Web 
development are averted by the Firefox/Gecko UX people.  AISB.
 
> Anyway, my text field of has a max length of 3 chars and will (later) be
> followed by several other fields. I wish each of this to be 'blurred' when
> a user tabs or <return>s.

That is why, AISB, you should handle the “keyup” event at a common ancestor 
element instead.
 
> Another also: my logical vrbl 'gotret' is global and is set to false on
> entry to the validate() function. If a <return> is sensed, it is set to
> true.

One of the first rules of thumb in programming is to avoid global variables.
 
> I only want chkforret() set the 'gotret' vrbl -- nothing further.

Usenet is not what you want.  And I, for one, am not someone who will help 
you eating your soup with a knife, so that you will eventually cut your 
tongue in the process, because a knife is the only tool that you presently 
know; I am someone who introduces the spoon to you instead.  Which I did.
 
-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

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


Thread

onkeyup not working for me in FireFox 50.1.0 "Mel Smith" <syntel@cox.net> - 2017-01-08 15:51 -0700
  onkeyup in Firefox (was: onkeyup not working for me in FireFox 50.1.0) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-01-09 00:30 +0100
    Re: onkeyup in Firefox (was: onkeyup not working for me in FireFox 50.1.0) "Mel Smith" <syntel@cox.net> - 2017-01-08 21:51 -0700
      Re: onkeyup in Firefox (was: onkeyup not working for me in FireFox 50.1.0) "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-09 09:44 +0100
        Re: onkeyup in Firefox (was: onkeyup not working for me in FireFox 50.1.0) "Mel Smith" <syntel@cox.net> - 2017-01-09 10:26 -0700
          Re: onkeyup in Firefox (was: onkeyup not working for me in FireFox 50.1.0) "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-01-09 19:19 +0100
      Re: onkeyup in Firefox Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-01-09 19:09 +0100

csiph-web