Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18237
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: How to best update three columns |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | <kdm9vn$ons$1@dont-email.me> <XnsA150CF1952965eejj99@194.109.133.133> <qjYcDkHRHDARFwpV@invalid.uk.co.demon.merlyn.invalid> |
| Date | 2013-01-24 10:01 +0100 |
| Message-ID | <XnsA15265F0C4193eejj99@194.109.133.133> (permalink) |
Dr J R Stockton wrote on 23 jan 2013 in comp.lang.javascript:
> In comp.lang.javascript message <XnsA150CF1952965eejj99@194.109.133.133>
> , Tue, 22 Jan 2013 20:21:31, Evertjan. <exxjxw.hannivoort@inter.nl.net>
> posted:
>
>>
>>var t = document.getElementsByTagName('table')[0];
>>var tb = t.getElementsByTagName('tbody')[0];
>>
>
> I think it generally better to use something other than a numerical
> index to identify the whole Table, in case the number or order of Tables
> is changed. Use a name or ID instead, on the Table or on some bordering
> element.
Indeed, however in examples, the number is an exellent way to show general
principles without including unrelated names or id's, and the only simple
way to identify an unnamed [mostly single] tbody.
In small pages, where you are confident there is only one table
var t = document.getElementsByTagName('table')[0];
is very usable, as you can copy, link or serverside include this piece of
clientside code witout alteration.
Also it is just as unsafe as other generalisations, like:
<style type='text/css'>
table thead {display:none;}
</style>
> Tony - I guess you are Swedish, or at least in Sweden; and that the
> Table may be a tide- or time- table. In either case, "Tendancy" should
> be "Tendency"; and "Trend" might (or might not) be better.
John, your tendency to react on in the subtilities of British-English is
not a trend, as it is an enjoyable constant factor of your postings.
=============
In [at least in medical] scientific literture there seems to be a
tendency, perhaps even a trendy upward trend, to write this nonsense:
"It is not statistically significant, but a trend is visible ..."
as if trends are exempted from the requirement of statistical significance
to be "visible" in scientific literture.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to best update three columns "Tony" <tony.johansson@inport.com> - 2013-01-22 16:07 +0100
Re: How to best update three columns "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-22 20:21 +0100
Re: How to best update three columns "Tony" <tony.johansson@inport.com> - 2013-01-23 10:08 +0100
Re: How to best update three columns "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-23 11:26 +0100
Re: How to best update three columns Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-01-23 18:54 +0000
Re: How to best update three columns "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-24 10:01 +0100
Re: How to best update three columns Bart Van der Donck <bart@nijlen.com> - 2013-01-23 01:11 -0800
csiph-web