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


Groups > comp.lang.javascript > #9841

Re: Alert and Input Control Events

Newsgroups comp.lang.javascript
Subject Re: Alert and Input Control Events
From "Evertjan." <exjxw.hannivoort@interxnl.net>
References <tftpf71vp0a6shta2387ren56i64tqvs3i@4ax.com> <LpadnX8jAONqy2PTnZ2dnUVZ8smdnZ2d@giganews.com> <n330g75jbqgdjce14vb9t99thq5cksb51f@4ax.com> <jdpefo$nsu$1@dont-email.me>
Message-ID <Xns9FCD91FF66E41eejj99@194.109.133.133> (permalink)
Date 2012-01-01 13:21 +0000

Show all headers | View raw


Gregor Kofler wrote on 01 jan 2012 in comp.lang.javascript:

> Am 2012-01-01 08:40, Gene Wirchenko meinte:
>> On Sat, 31 Dec 2011 01:27:32 +0100, Stefan Weiss
>> <krewecherl@gmail.com> wrote:
> 
>>      I am referring to field-level validation, not form-level
>> validation.  If a field value itself is invalid *without reference to
>> any other fields*, I will throw an error.  In the above example,
>> entering a month 13 is such an error.  Entering a day 32 is such an
>> error.  Entering a day 31 is not such an error.
>> 
>>      If the problem is that two or more field values are incompatible
>> (say, month 2 and day 30), that is a form-level error and I would
>> handle that on form submit.
> 
> Do you *really* want to use alert dialogs for such errors (and fiddling
> with element focus)? Usability will be painful, to say the least. Even
> more so, when there will be a second validation run upon submission
> (with probably a different way to inform the user about errors). I'd opt
> for blur listeners giving consistent feedbacks, and *not* fiddling with
> element focus.

Perhaps it would be nicer to have each form-field giving a green flag if 
correctly filled, not irritating the user with error messages at each 
incorrect or empty field.

I however would usually prefer to do a single pre-submit validation,
clientside for speed and/or serverside for quality,
showing commented red flag warnings at each offending field.


-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

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


Thread

Alert and Input Control Events Gene Wirchenko <genew@ocis.net> - 2011-12-29 15:28 -0800
  Re: Alert and Input Control Events Stefan Weiss <krewecherl@gmail.com> - 2011-12-31 01:27 +0100
    Re: Alert and Input Control Events Gene Wirchenko <genew@ocis.net> - 2011-12-31 23:40 -0800
      Re: Alert and Input Control Events Gregor Kofler <usenet@gregorkofler.com> - 2012-01-01 12:02 +0100
        Re: Alert and Input Control Events "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-01-01 13:21 +0000
          Re: Alert and Input Control Events Gregor Kofler <usenet@gregorkofler.com> - 2012-01-01 16:55 +0100
        Re: Alert and Input Control Events Gene Wirchenko <genew@ocis.net> - 2012-01-02 10:49 -0800
          Re: Alert and Input Control Events Scott Sauyet <scott.sauyet@gmail.com> - 2012-01-03 04:54 -0800
            Re: Alert and Input Control Events Gene Wirchenko <genew@ocis.net> - 2012-01-03 17:13 -0800

csiph-web