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


Groups > comp.lang.javascript > #13414

Re: Clicking on Disabled Controls: What Happens?

From Tim Streater <timstreater@greenbee.net>
Newsgroups comp.lang.javascript, alt.html
Subject Re: Clicking on Disabled Controls: What Happens?
Date 2012-04-16 18:32 +0100
Organization Personal Software
Message-ID <timstreater-B04FCB.18324716042012@news.individual.net> (permalink)
References (1 earlier) <vlpio79tish13t14pvm0l24v1sd9abpnaf@4ax.com> <d45no7dqm4ut169sh5lt5dbja5unfj9d40@4ax.com> <ssmno7def1lu4a66m4beoq9r7c8kkcgdld@4ax.com> <f7hoo75f071t4r9pimg1mrkfnvgarjfh8t@4ax.com> <jmhk1v$j3k$1@speranza.aioe.org>

Cross-posted to 2 groups.

Show all headers | View raw


In article <jmhk1v$j3k$1@speranza.aioe.org>,
 "Neil Gould" <neil@myplaceofwork.com> wrote:

> Gene Wirchenko wrote:
> [big snip]
> >      I do keep track of it.  What I need to detect is that a disabled
> > item has been clicked on.  Then, I could shift focus back.  I
> > currently know of no way to detect this.
> > [...]
> >
> >      Exactly, but the focus still shifts.  It would make more sense to
> > me if clicking on something disabled did not case a focus shift. Think
> > about it for a moment.  If something is disabled, why should it do
> > anything?
> >
> Why is it necessary to display disabled items? I realize that you would like
> to have a stable UI for your users, but it may be possible to achieve that
> by only presenting relevant options.

I display disabled items in order to display the data to the user. When 
they want to edit it, and have the edits be saved, they click the 'Edit' 
button, part of the effect of which is to enable all those disabled 
textareas. The user then edits, and clicks 'Save'. Part of the tidy-up 
action is then to disable the textareas again.

-- 
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted"  --  Bill of Rights 1689

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


Thread

Clicking on Disabled Controls: What Happens? Gene Wirchenko <genew@ocis.net> - 2012-04-13 12:12 -0700
  Re: Clicking on Disabled Controls: What Happens? "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-04-14 10:35 +0000
    Re: Clicking on Disabled Controls: What Happens? Denis McMahon <denismfmcmahon@gmail.com> - 2012-04-14 15:45 +0000
      Re: Clicking on Disabled Controls: What Happens? "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-04-14 17:39 +0000
        Re: Clicking on Disabled Controls: What Happens? Denis McMahon <denismfmcmahon@gmail.com> - 2012-04-14 20:59 +0000
    Re: Clicking on Disabled Controls: What Happens? Gene Wirchenko <genew@ocis.net> - 2012-04-15 20:26 -0700
      Re: Clicking on Disabled Controls: What Happens? "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-04-16 09:37 +0000
  Re: Clicking on Disabled Controls: What Happens? Jeff North <jnorthau@yahoo.com.au> - 2012-04-14 23:58 +1000
    Re: Clicking on Disabled Controls: What Happens? Gene Wirchenko <genew@ocis.net> - 2012-04-15 20:51 -0700
      Re: Clicking on Disabled Controls: What Happens? Jeff North <jnorthau@yahoo.com.au> - 2012-04-16 18:52 +1000
        Re: Clicking on Disabled Controls: What Happens? Gene Wirchenko <genew@ocis.net> - 2012-04-16 09:25 -0700
          Re: Clicking on Disabled Controls: What Happens? "Neil Gould" <neil@myplaceofwork.com> - 2012-04-16 13:13 -0400
            Re: Clicking on Disabled Controls: What Happens? Tim Streater <timstreater@greenbee.net> - 2012-04-16 18:32 +0100
              Re: Clicking on Disabled Controls: What Happens? Gene Wirchenko <genew@ocis.net> - 2012-04-16 10:53 -0700
          Re: Clicking on Disabled Controls: What Happens? "Jonathan N. Little" <lws4art@gmail.com> - 2012-04-16 13:44 -0400
  Re: Clicking on Disabled Controls: What Happens? Stefan Weiss <krewecherl@gmail.com> - 2012-04-15 00:33 +0200
    Re: Clicking on Disabled Controls: What Happens? Denis McMahon <denismfmcmahon@gmail.com> - 2012-04-15 00:00 +0000
      Re: Clicking on Disabled Controls: What Happens? Gene Wirchenko <genew@ocis.net> - 2012-04-15 20:27 -0700
    Re: Clicking on Disabled Controls: What Happens? Gene Wirchenko <genew@ocis.net> - 2012-04-15 20:24 -0700

csiph-web