Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #22282
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail |
|---|---|
| Content-Type | text/plain; charset="UTF-8" |
| Message-ID | <1536350.F63rdpPjnV@PointedEars.de> (permalink) |
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Reply-To | Thomas 'PointedEars' Lahn <cljs@PointedEars.de> |
| Organization | PointedEars Software (PES) |
| Date | Wed, 11 Dec 2013 00:22:50 +0100 |
| User-Agent | KNode/4.11.3 |
| Content-Transfer-Encoding | 8Bit |
| X-Face | %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v |
| Face | iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg== |
| Subject | Re: best method to "hide" a whole <table> column ? |
| Newsgroups | comp.lang.javascript |
| References | <4a645078$0$292$7a628cd7@news.club-internet.fr> <8d349f92-a64b-4837-9f00-cbcc4d07f985@k19g2000yqn.googlegroups.com> <0a06e88a-f13d-4ced-a49a-361556b80643@googlegroups.com> <l87tmt$860$2@dont-email.me> |
| MIME-Version | 1.0 |
| Lines | 42 |
| NNTP-Posting-Date | 11 Dec 2013 00:22:54 CET |
| NNTP-Posting-Host | 932e4402.newsspool2.arcor-online.net |
| X-Trace | DXC=V4CP6J`EkZSYI9]OHn9o5^A9EHlD;3YcR4Fo<]lROoRQ8kF<OcfhCO[U`o8ia5]LMWDZm8W4\YJN\YUVHKH;GI^WRYE>VO8EjaUaJd3J[6K=7W |
| X-Complaints-To | usenet-abuse@arcor.de |
| Xref | csiph.com comp.lang.javascript:22282 |
Show key headers only | View raw
Denis McMahon wrote:
> function hide(tid,c,h=true){
^^^^^
Syntax error. Default parameters cannot (yet) be defined this way in
strictly conforming implementations of ECMAScript. You have to initialize
them if they are not present, for example:
function hide(tid, c, h)
{
if (typeof h == "undefined")
{
h = true;
}
/* or */
if (arguments.length < 3)
{
h = true;
}
The difference between the first and second approach is that with the second
one there is no false positive if “undefined” is passed for “h”.
> var i,t=document.getElementById(tid);
> for(i=0;i<t.rows.length;i++)
> t.rows[i].cells[c-1].style.display=h?"none":"table-cell";
t.rows[i].cells[c-1].style.display = h ? "none" : "";
Setting the value of a style property to the empty string resets it to its
initial value.
> }
> […]
--
PointedEars
Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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