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


Groups > comp.lang.javascript > #31885

Re: Techniques to prevent accidental press of the Enter key that submits a FORM

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Techniques to prevent accidental press of the Enter key that submits a FORM
Date 2016-12-16 17:54 +0100
Organization PointedEars Software (PES)
Message-ID <1547367.X513TT2pbd@PointedEars.de> (permalink)
References (3 earlier) <o2rl53$kk2$1@knightstalker.eternal-september.org> <1911160.Mh6RI2rZIc@PointedEars.de> <o2rrqc$d60$1@knightstalker.eternal-september.org> <1687944.taCxCBeP46@PointedEars.de> <o3135b$18u$1@knightstalker.eternal-september.org>

Show all headers | View raw


KnightStalker wrote:

> On 12/14/2016 12:00 PM, Thomas 'PointedEars' Lahn wrote:
>> KnightStalker wrote:
>>> On 12/14/2016 10:19 AM, Thomas 'PointedEars' Lahn wrote:
>>>> KnightStalker wrote:
>>>> ^^^^^^^^^^^^^
>>>> Who?
>>> Just add a space before the Capital S. Now if you don't like my name,
>>> just ignore it.
>> This is a Usenet newsgroup, not a chat room. Pseudonyms are not
>> "cool" here, but ridiculous. I could ignore *you* for this
>> impoliteness, and recommend to others to ignore you, but you do not
>> want that to happen. So here is your last chance to avoid it.
> 
> Feel free to ignore whom ever you wish and recommend to whom ever you
> wish.

*plonk*
 
>>> Depending on the ua tested in (firefox for example), tab to the
>>> submit button and press (Enter/Return || space) key. Current
>>> versions of Google Chrome and Microsoft Edge, no tabbing required.
>> If the user had been aware that they could use the Tab key, they
>> would not have, before you prevented it, accidentally submitted the
>> form using the Return key, would they?
> 
> Nothing was done to prevent the use of any keys.

Nonsense.  The very point of this thread is to not make the Enter/Return key 
work by default.  Your very code does that with a disabled, hidden submit 
button.  Probably it is not your own code either, but just cargo cult 
programming.

-- 
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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Techniques to prevent accidental press of the Enter key that submits a FORM justaguy <lichunshen84@gmail.com> - 2016-12-13 18:48 -0800
  Re: Techniques to prevent accidental press of the Enter key that submits a FORM "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-12-14 10:14 +0100
    Re: Techniques to prevent accidental press of the Enter key that submits a FORM justaguy <lichunshen84@gmail.com> - 2016-12-14 05:42 -0800
  Re: Techniques to prevent accidental press of the Enter key that submits a FORM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-12-14 13:04 +0100
    Re: Techniques to prevent accidental press of the Enter key that submits a FORM justaguy <lichunshen84@gmail.com> - 2016-12-14 05:45 -0800
    Re: Techniques to prevent accidental press of the Enter key that submits a FORM KnightStalker <7oo7le7roupie@gmail.com> - 2016-12-14 09:33 -0500
      Re: Techniques to prevent accidental press of the Enter key that submits a FORM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-12-14 16:19 +0100
        Re: Techniques to prevent accidental press of the Enter key that submits a FORM Jake Jarvis <pig_in_shoes@yahoo.com> - 2016-12-14 16:42 +0100
          Re: Techniques to prevent accidental press of the Enter key that submits a FORM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-12-14 18:00 +0100
        Re: Techniques to prevent accidental press of the Enter key that submits a FORM KnightStalker <7oo7le7roupie@gmail.com> - 2016-12-14 11:27 -0500
          Re: Techniques to prevent accidental press of the Enter key that submits a FORM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-12-14 18:00 +0100
            Re: Techniques to prevent accidental press of the Enter key that submits a FORM KnightStalker <7oo7le7roupie@gmail.com> - 2016-12-16 11:03 -0500
              Re: Techniques to prevent accidental press of the Enter key that submits a FORM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-12-16 17:54 +0100
                Re: Techniques to prevent accidental press of the Enter key that submits a FORM KnightStalker <7oo7le7roupie@gmail.com> - 2017-01-06 15:08 -0500
      Re: Techniques to prevent accidental press of the Enter key that submits a FORM justaguy <lichunshen84@gmail.com> - 2016-12-15 14:21 -0800
        Re: Techniques to prevent accidental press of the Enter key that submits a FORM KnightStalker <7oo7le7roupie@gmail.com> - 2016-12-16 12:24 -0500
  Re: Techniques to prevent accidental press of the Enter key that submits a FORM John Harris <niam@jghnorth.org.uk.invalid> - 2016-12-14 15:07 +0000
    Re: Techniques to prevent accidental press of the Enter key that submits a FORM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-12-14 23:31 +0100
    Re: Techniques to prevent accidental press of the Enter key that submits a FORM justaguy <lichunshen84@gmail.com> - 2016-12-15 14:15 -0800
  Re: Techniques to prevent accidental press of the Enter key that submits a FORM Dr J R Stockton <reply1600@merlyn.demon.co.uk.invalid> - 2016-12-17 21:02 +0000

csiph-web