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


Groups > comp.lang.javascript > #9839

Re: Alert and Input Control Events

From Gregor Kofler <usenet@gregorkofler.com>
Newsgroups comp.lang.javascript
Subject Re: Alert and Input Control Events
Date 2012-01-01 12:02 +0100
Organization A noiseless patient Spider
Message-ID <jdpefo$nsu$1@dont-email.me> (permalink)
References <tftpf71vp0a6shta2387ren56i64tqvs3i@4ax.com> <LpadnX8jAONqy2PTnZ2dnUVZ8smdnZ2d@giganews.com> <n330g75jbqgdjce14vb9t99thq5cksb51f@4ax.com>

Show all headers | View raw


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.

Gregor


-- 
http://vxweb.net

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