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


Groups > comp.lang.javascript > #12559

Re: Removing a Control from the taborder

From Norman Peelman <npeelmandog@cfl.rr.com>
Newsgroups comp.lang.javascript
Subject Re: Removing a Control from the taborder
Date 2012-03-09 18:56 -0500
Organization A noiseless patient Spider
Message-ID <jje5bg$f47$1@dont-email.me> (permalink)
References <hu9il7laq6ickgb37cdcb49ump7o40dlp7@4ax.com> <XnsA011B6483162eejj99@194.109.133.133> <1fuil7tf54q4gu2h40ous7k58q3766aaa9@4ax.com>

Show all headers | View raw


On 03/08/2012 10:37 PM, Gene Wirchenko wrote:
> On 09 Mar 2012 00:07:13 GMT, "Evertjan."
> <exjxw.hannivoort@interxnl.net>  wrote:
>
>> Gene Wirchenko wrote on 08 mrt 2012 in comp.lang.javascript:
>>>       Is there a standard-compliant way in JavaScript to remove a
>>> control from the taborder?
>>>
>>>       There is a non-standard-compliant way of doing it in HTML with
>>>            ...taborder=-1...
>>> I prefer not to use this.
>>
>> It surely is tabindex='1', not taborder='1'.
>
>       It is.  Somehow, I had a thinko at one point.
>
>> Meseems tabindex='-1' is standard,
>
>       It is not standard.  Per the HTML 4.01 Specification:
>
> "17.11.1 Tabbing navigation
>
>     Attribute definitions
>
>     tabindex = number [CN]
>            This attribute specifies the position of the current element
> in
>            the tabbing order for the current document. This value must
> be
>            a number between 0 and 32767. User agents should ignore
> leading
>            zeros."
>
>> but then I do not care much for standard-compliance
>> but do care for cross-browser compatibility.
>>
>> <http://reference.sitepoint.com/html/a/tabindex>
>
>       I like both.
>
>> However this surely is off-topic on this NG.
>> Shall we go back to Javascript?
>
>       If there is a JavaScript answer to my question, I would quite
> happily take it.
>
> Sincerely,
>
> Gene Wirchenko

   Consider this, the tabindex controls the tab order of the form 
elements with a range of 0 - 32767. That means to remove a form element 
from the tabindex it must not be in that range. "-1" is not in that 
range, nor is "-32767" or anything in between for that matter. You could 
simply throw (insert) a minus sign in front of a form element to disable 
it, even via scripting (simply multiply the tabindex by -1 to toggle).

http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/


-- 
Norman
Registered Linux user #461062
AMD64X2 6400+ Ubuntu 10.04 64bit

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


Thread

Removing a Control from the taborder Gene Wirchenko <genew@ocis.net> - 2012-03-08 13:56 -0800
  Re: Removing a Control from the taborder "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-03-09 00:07 +0000
    Re: Removing a Control from the taborder Gene Wirchenko <genew@ocis.net> - 2012-03-08 19:37 -0800
      Re: Removing a Control from the taborder Norman Peelman <npeelmandog@cfl.rr.com> - 2012-03-09 18:56 -0500
        Re: Removing a Control from the taborder Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-03-10 01:42 +0100
          Re: Removing a Control from the taborder Norman Peelman <npeelmandog@cfl.rr.com> - 2012-03-09 22:59 -0500
            Re: Removing a Control from the taborder "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-03-10 08:40 +0200
              Re: Removing a Control from the taborder Norman Peelman <npeelmandog@cfl.rr.com> - 2012-03-10 06:18 -0500
                Re: Removing a Control from the taborder Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-03-10 13:33 +0100
            Re: Removing a Control from the taborder Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-03-10 12:33 +0100
          Re: Removing a Control from the taborder Norman Peelman <npeelmandog@cfl.rr.com> - 2012-03-09 23:22 -0500
      Re: Removing a Control from the taborder Dr J R Stockton <reply1210@merlyn.demon.co.uk> - 2012-03-10 20:51 +0000
        Re: Removing a Control from the taborder Gene Wirchenko <genew@ocis.net> - 2012-03-10 23:55 -0800
          Re: Removing a Control from the taborder Dr J R Stockton <reply1211@merlyn.demon.co.uk.invalid> - 2012-03-12 19:46 +0000
          Re: Removing a Control from the taborder David Mark <dmark.cinsoft@gmail.com> - 2012-03-12 18:24 -0700

csiph-web