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


Groups > comp.lang.javascript > #22291

Re: best method to "hide" a whole <table> column ?

From Joao Rodrigues <groups_jr-1@yahoo.com.br>
Newsgroups comp.lang.javascript
Subject Re: best method to "hide" a whole <table> column ?
Date 2013-12-11 22:08 -0200
Organization Aioe.org NNTP Server
Message-ID <l8aupv$c16$1@speranza.aioe.org> (permalink)
References (2 earlier) <0a06e88a-f13d-4ced-a49a-361556b80643@googlegroups.com> <l87tmt$860$2@dont-email.me> <1536350.F63rdpPjnV@PointedEars.de> <l8a4a4$73j$1@speranza.aioe.org> <l8ae2v$d89$2@dont-email.me>

Show all headers | View raw


On 11/12/2013 17:23, Denis McMahon wrote:
> On Wed, 11 Dec 2013 14:36:26 -0200, Joao Rodrigues wrote:
>
>> Considering your "strictly conforming implementations of ECMAScript", it
>> could be just:
>>     if (h === undefined) { h = true; }
>> or
>>     h = h || true;
>
> Not sure about the last one, what happens if h is false?
>
> h = h (false) || true;
>
> so h = true;
>
> This would (in this code) prevent hidden columns being unhidden.

Oops! Sorry, I've deviated from the original problem because of the 
question raised by Thomas (what would happen if 'h' was not passed a value).

As 'h' should be either true or false, then a simple test might use the 
double negation pattern (!!):

h = !!h

Cheers,
Joao Rodrigues

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


Thread

Re: best method to "hide" a whole <table> column ? kumarcherukuris@gmail.com - 2013-12-10 09:02 -0800
  Re: best method to "hide" a whole <table> column ? Denis McMahon <denismfmcmahon@gmail.com> - 2013-12-10 19:20 +0000
  Re: best method to "hide" a whole <table> column ? Denis McMahon <denismfmcmahon@gmail.com> - 2013-12-10 20:31 +0000
    Re: best method to "hide" a whole <table> column ? "Evertjan." <exjxw.hannivoort@interxnl.net> - 2013-12-10 22:35 +0000
      Re: best method to "hide" a whole <table> column ? Denis McMahon <denismfmcmahon@gmail.com> - 2013-12-11 00:16 +0000
      Re: best method to "hide" a whole <table> column ? Hans-Georg Michna <hans-georgNoEmailPlease@michna.com> - 2013-12-11 11:16 +0100
        Re: best method to "hide" a whole <table> column ? Nisse Engström <news.NOSPAM.uvex6@luden.se> - 2014-02-15 02:38 +0100
      Re: best method to "hide" a whole <table> column ? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-12-11 11:23 -0200
        Re: best method to "hide" a whole <table> column ? Denis McMahon <denismfmcmahon@gmail.com> - 2013-12-11 19:16 +0000
    Re: best method to "hide" a whole <table> column ? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-12-11 00:22 +0100
      Re: best method to "hide" a whole <table> column ? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-12-11 14:36 -0200
        Re: best method to "hide" a whole <table> column ? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-12-11 18:27 +0100
        Re: best method to "hide" a whole <table> column ? Denis McMahon <denismfmcmahon@gmail.com> - 2013-12-11 19:23 +0000
          Re: best method to "hide" a whole <table> column ? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-12-11 22:08 -0200

csiph-web