Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #9054 > unrolled thread
| Started by | Tim Streater <timstreater@greenbee.net> |
|---|---|
| First post | 2011-12-09 18:06 +0000 |
| Last post | 2011-12-15 15:53 -0800 |
| Articles | 18 — 7 participants |
Back to article view | Back to comp.lang.javascript
Wanting to use getElementById() Tim Streater <timstreater@greenbee.net> - 2011-12-09 18:06 +0000
Re: Wanting to use getElementById() "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-12-09 20:04 +0000
Re: Wanting to use getElementById() Tim Streater <timstreater@greenbee.net> - 2011-12-09 23:59 +0000
Re: Wanting to use getElementById() Swifty <steve.j.swift@gmail.com> - 2011-12-10 06:43 +0000
Re: Wanting to use getElementById() Tim Streater <timstreater@greenbee.net> - 2011-12-10 09:55 +0000
Re: Wanting to use getElementById() "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-12-10 10:12 +0000
Re: Wanting to use getElementById() Tim Streater <timstreater@greenbee.net> - 2011-12-10 12:16 +0000
Re: Wanting to use getElementById() "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-12-10 15:09 +0000
Re: Wanting to use getElementById() Tim Streater <timstreater@greenbee.net> - 2011-12-10 17:10 +0000
Re: Wanting to use getElementById() "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-12-10 18:17 +0000
Re: Wanting to use getElementById() Tim Streater <timstreater@greenbee.net> - 2011-12-10 18:51 +0000
Re: Wanting to use getElementById() "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-12-10 19:59 +0000
Re: Wanting to use getElementById() Denis McMahon <denismfmcmahon@gmail.com> - 2011-12-10 21:22 +0000
Re: Wanting to use getElementById() Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-12-11 00:52 +0100
Re: Wanting to use getElementById() Dr J R Stockton <reply1150@merlyn.demon.co.uk> - 2011-12-13 19:52 +0000
Re: Wanting to use getElementById() Gene Wirchenko <genew@ocis.net> - 2011-12-13 17:29 -0800
Re: Wanting to use getElementById() Dr J R Stockton <reply1150@merlyn.demon.co.uk> - 2011-12-15 21:51 +0000
Re: Wanting to use getElementById() Gene Wirchenko <genew@ocis.net> - 2011-12-15 15:53 -0800
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Date | 2011-12-09 18:06 +0000 |
| Subject | Wanting to use getElementById() |
| Message-ID | <timstreater-81381E.18065509122011@news.individual.net> |
My app displays a table in a browser window. The user has the option to
display a different table by clicking a button. I effect this by
switching table bodies - I have an array containing pointers to a set of
tbodies.
Now, while this all works OK, if I wish to search for a row in such a
table body by id, I'm only using getElementById() on the tbody that
happens to be in the DOM just now. If I want to look for a row in
another tbody, I'm having to search for that by hand with a JavaScript
loop, which I assume is a lot slower than using getElementById.
To get round this, I'm thinking that if I can create another document, I
could append the tbody I want to search to that and then use
getElementById on the result. Something like:
mydocPtr = document.createElement("document");
mydocPtr.appendChild(tbodyPtr);
rowPtr = mydocPtr.getElementById(someId);
Can I create a document element in this way? Anything I should be wary
of?
--
Tim
"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
[toc] | [next] | [standalone]
| From | "Evertjan." <exjxw.hannivoort@interxnl.net> |
|---|---|
| Date | 2011-12-09 20:04 +0000 |
| Message-ID | <Xns9FB6D66455B83eejj99@194.109.133.133> |
| In reply to | #9054 |
Tim Streater wrote on 09 dec 2011 in comp.lang.javascript:
> My app displays a table in a browser window. The user has the option to
> display a different table by clicking a button. I effect this by
> switching table bodies - I have an array containing pointers to a set of
> tbodies.
>
> Now, while this all works OK, if I wish to search for a row in such a
> table body by id, I'm only using getElementById() on the tbody that
> happens to be in the DOM just now. If I want to look for a row in
> another tbody, I'm having to search for that by hand with a JavaScript
> loop, which I assume is a lot slower than using getElementById.
>
> To get round this, I'm thinking that if I can create another document, I
> could append the tbody I want to search to that and then use
> getElementById on the result. Something like:
>
> mydocPtr = document.createElement("document");
> mydocPtr.appendChild(tbodyPtr);
> rowPtr = mydocPtr.getElementById(someId);
>
> Can I create a document element in this way? Anything I should be wary
> of?
Make up two tables [or tbody-s] one being display:none;-ed by default,
and switch to display the other instead by javascript.
function showTable(x) {
document.getElementById('table1').style.display = 'none';
document.getElementById('table2').style.display = 'none';
document.getElementById(x).style.display = 'block';
};
Both their inividual td-elements stay accessable
through their different getElementById()-s
even when not displayed.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Date | 2011-12-09 23:59 +0000 |
| Message-ID | <timstreater-095030.23590509122011@news.individual.net> |
| In reply to | #9060 |
In article <Xns9FB6D66455B83eejj99@194.109.133.133>,
"Evertjan." <exjxw.hannivoort@interxnl.net> wrote:
> Tim Streater wrote on 09 dec 2011 in comp.lang.javascript:
>
> > My app displays a table in a browser window. The user has the option to
> > display a different table by clicking a button. I effect this by
> > switching table bodies - I have an array containing pointers to a set of
> > tbodies.
> >
> > Now, while this all works OK, if I wish to search for a row in such a
> > table body by id, I'm only using getElementById() on the tbody that
> > happens to be in the DOM just now. If I want to look for a row in
> > another tbody, I'm having to search for that by hand with a JavaScript
> > loop, which I assume is a lot slower than using getElementById.
> >
> > To get round this, I'm thinking that if I can create another document, I
> > could append the tbody I want to search to that and then use
> > getElementById on the result. Something like:
> >
> > mydocPtr = document.createElement("document");
> > mydocPtr.appendChild(tbodyPtr);
> > rowPtr = mydocPtr.getElementById(someId);
> >
> > Can I create a document element in this way? Anything I should be wary
> > of?
>
> Make up two tables [or tbody-s] one being display:none;-ed by default,
> and switch to display the other instead by javascript.
>
> function showTable(x) {
> document.getElementById('table1').style.display = 'none';
> document.getElementById('table2').style.display = 'none';
> document.getElementById(x).style.display = 'block';
> };
>
>
> Both their inividual td-elements stay accessable
> through their different getElementById()-s
> even when not displayed.
Mmmm, nice idea. I do have a variable number of these tables, but that
wouldn't create an insurmountable problem. More of a problem is that I
would then have id conflicts - each table has a similar set of row-id's.
I expect I could get around this too at the expense of a certain amount
of recoding.
Is there anything wrong (or dangerous) about what I'm considering, that
you know of?
--
Tim
"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
[toc] | [prev] | [next] | [standalone]
| From | Swifty <steve.j.swift@gmail.com> |
|---|---|
| Date | 2011-12-10 06:43 +0000 |
| Message-ID | <oov5e71e41ggcv5f0q2492av7iv8umagds@4ax.com> |
| In reply to | #9065 |
On Fri, 09 Dec 2011 23:59:05 +0000, Tim Streater <timstreater@greenbee.net> wrote: >would then have id conflicts - each table has a similar set of row-id's. >I expect I could get around this too at the expense of a certain amount >of recoding. Faced with a similar problem, I ensured that the element ID's were unique by encoding the table number, the row number, and the column number in the ID, ending up with ID's such as C_5_217_9 (Cell in table 5, row 217, colum 9). -- Steve Swift http://www.swiftys.org.uk/swifty.html http://www.ringers.org.uk
[toc] | [prev] | [next] | [standalone]
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Date | 2011-12-10 09:55 +0000 |
| Message-ID | <timstreater-0AFA0D.09553810122011@news.individual.net> |
| In reply to | #9067 |
In article <oov5e71e41ggcv5f0q2492av7iv8umagds@4ax.com>, Swifty <steve.j.swift@gmail.com> wrote: > On Fri, 09 Dec 2011 23:59:05 +0000, Tim Streater > <timstreater@greenbee.net> wrote: > > >would then have id conflicts - each table has a similar set of row-id's. > >I expect I could get around this too at the expense of a certain amount > >of recoding. > > Faced with a similar problem, I ensured that the element ID's were > unique by encoding the table number, the row number, and the column > number in the ID, ending up with ID's such as C_5_217_9 (Cell in table > 5, row 217, colum 9). Exactly. -- Tim "That excessive bail ought not to be required, nor excessive fines imposed, nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exjxw.hannivoort@interxnl.net> |
|---|---|
| Date | 2011-12-10 10:12 +0000 |
| Message-ID | <Xns9FB772084920Feejj99@194.109.133.133> |
| In reply to | #9067 |
Swifty wrote on 10 dec 2011 in comp.lang.javascript:
> On Fri, 09 Dec 2011 23:59:05 +0000, Tim Streater
> <timstreater@greenbee.net> wrote:
>
>>would then have id conflicts - each table has a similar set of
>>row-id's. I expect I could get around this too at the expense of a
>>certain amount of recoding.
>
> Faced with a similar problem, I ensured that the element ID's were
> unique by encoding the table number, the row number, and the column
> number in the ID, ending up with ID's such as C_5_217_9 (Cell in table
> 5, row 217, colum 9).
That is so if you stick to individual ids [ ideas? ;-) ]
of total gebi() control.
However if the tables are roughly similar but for the content,
why not:
document.getElementById('table1').rows(217).cells(9)
document.getElementById('table5').rows(217).cells(9)
[rows and cells counts start at 0]
=========================================
Better use a function:
function getTableCell(t,r,c) {
return document.getElementById(t).rows(r).cells(c);
};
getTableCell('table1',217,9).style.color = 'green';
getTableCell('table5',217,9).style.color = 'red';
var theCell = getTableCell('table88',2,1);
alert(theCell.innerHTML);
theCell.style.color = 'red';
var otherCell = getTableCell('table15',2,11);
if (theCell.innerHTML != +otherCell.innerHTML+6)
theCell.innerHTML = +otherCell.innerHTML+12;
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Date | 2011-12-10 12:16 +0000 |
| Message-ID | <timstreater-CE1BCB.12164710122011@news.individual.net> |
| In reply to | #9069 |
In article <Xns9FB772084920Feejj99@194.109.133.133>,
"Evertjan." <exjxw.hannivoort@interxnl.net> wrote:
> Swifty wrote on 10 dec 2011 in comp.lang.javascript:
>
> > On Fri, 09 Dec 2011 23:59:05 +0000, Tim Streater
> > <timstreater@greenbee.net> wrote:
> >
> >>would then have id conflicts - each table has a similar set of
> >>row-id's. I expect I could get around this too at the expense of a
> >>certain amount of recoding.
> >
> > Faced with a similar problem, I ensured that the element ID's were
> > unique by encoding the table number, the row number, and the column
> > number in the ID, ending up with ID's such as C_5_217_9 (Cell in table
> > 5, row 217, colum 9).
>
> That is so if you stick to individual ids [ ideas? ;-) ]
> of total gebi() control.
>
> However if the tables are roughly similar but for the content,
> why not:
>
> document.getElementById('table1').rows(217).cells(9)
> document.getElementById('table5').rows(217).cells(9)
When I construct the table, I want to later be able to find a given row,
so I can modify it. From the SQLite db I get the data from, I have a db
name (or number) and the rowid. So far I've been making up an id for the
row (as they are added to the tbody) just using the rowid, as in:
id = 'M' + rowid;
Simple enough to extend that to include the db number.
But I'd still like to know whether:
mydocPtr = document.createElement('document');
is allowed.
--
Tim
"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exjxw.hannivoort@interxnl.net> |
|---|---|
| Date | 2011-12-10 15:09 +0000 |
| Message-ID | <Xns9FB7A466E1438eejj99@194.109.133.133> |
| In reply to | #9070 |
Tim Streater wrote on 10 dec 2011 in comp.lang.javascript:
> But I'd still like to know whether:
>
> mydocPtr = document.createElement('document');
>
> is allowed.
>
What would you want to use that for?
As an equivalent for:
document.open()
document.write('....')
?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Date | 2011-12-10 17:10 +0000 |
| Message-ID | <timstreater-E59AD6.17105910122011@news.individual.net> |
| In reply to | #9084 |
In article <Xns9FB7A466E1438eejj99@194.109.133.133>,
"Evertjan." <exjxw.hannivoort@interxnl.net> wrote:
> Tim Streater wrote on 10 dec 2011 in comp.lang.javascript:
>
> > But I'd still like to know whether:
> >
> > mydocPtr = document.createElement('document');
> >
> > is allowed.
> What would you want to use that for?
>
> As an equivalent for:
>
> document.open()
> document.write('....')
As a document to which I can append a tbody, that I can then search with
getElementById(), as I said in my first post.
--
Tim
"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exjxw.hannivoort@interxnl.net> |
|---|---|
| Date | 2011-12-10 18:17 +0000 |
| Message-ID | <Xns9FB7C43B48B3Deejj99@194.109.133.133> |
| In reply to | #9101 |
Tim Streater wrote on 10 dec 2011 in comp.lang.javascript:
> In article <Xns9FB7A466E1438eejj99@194.109.133.133>,
> "Evertjan." <exjxw.hannivoort@interxnl.net> wrote:
>
>> Tim Streater wrote on 10 dec 2011 in comp.lang.javascript:
>>
>> > But I'd still like to know whether:
>> >
>> > mydocPtr = document.createElement('document');
>> >
>> > is allowed.
>
>> What would you want to use that for?
>>
>> As an equivalent for:
>>
>> document.open()
>> document.write('....')
>
> As a document to which I can append a tbody, that I can then search with
> getElementById(), as I said in my first post.
Why would you want to append a tbody to a document?
A tbody should only be appended to a table element, meseems.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Date | 2011-12-10 18:51 +0000 |
| Message-ID | <timstreater-32E588.18510010122011@news.individual.net> |
| In reply to | #9102 |
In article <Xns9FB7C43B48B3Deejj99@194.109.133.133>,
"Evertjan." <exjxw.hannivoort@interxnl.net> wrote:
> Tim Streater wrote on 10 dec 2011 in comp.lang.javascript:
>
> > In article <Xns9FB7A466E1438eejj99@194.109.133.133>,
> > "Evertjan." <exjxw.hannivoort@interxnl.net> wrote:
> >
> >> Tim Streater wrote on 10 dec 2011 in comp.lang.javascript:
> >>
> >> > But I'd still like to know whether:
> >> >
> >> > mydocPtr = document.createElement('document');
> >> >
> >> > is allowed.
> >
> >> What would you want to use that for?
> >>
> >> As an equivalent for:
> >>
> >> document.open()
> >> document.write('....')
> >
> > As a document to which I can append a tbody, that I can then search with
> > getElementById(), as I said in my first post.
>
> Why would you want to append a tbody to a document?
>
> A tbody should only be appended to a table element, meseems.
I'm well aware of that, Evertjan. Stop being so perverse. I'd make the
document, append a table and then put the tbody on that.
--
Tim
"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exjxw.hannivoort@interxnl.net> |
|---|---|
| Date | 2011-12-10 19:59 +0000 |
| Message-ID | <Xns9FB7D58222693eejj99@194.109.133.133> |
| In reply to | #9103 |
Tim Streater wrote on 10 dec 2011 in comp.lang.javascript: >> Why would you want to append a tbody to a document? >> >> A tbody should only be appended to a table element, meseems. > > I'm well aware of that, Evertjan. Stop being so perverse. I'd make the > document, append a table and then put the tbody on that. Doesn't the document exist from the beginning of creation of your page? -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | Denis McMahon <denismfmcmahon@gmail.com> |
|---|---|
| Date | 2011-12-10 21:22 +0000 |
| Message-ID | <4ee3cda6$0$29309$a8266bb1@newsreader.readnews.com> |
| In reply to | #9070 |
On Sat, 10 Dec 2011 12:16:47 +0000, Tim Streater wrote:
> But I'd still like to know whether:
>
> mydocPtr = document.createElement('document');
>
> is allowed.
I think that for an html document, document.createElement has to take a
valid html element name.
A simple empirical test suggests that it won't work in all browsers. ;)
Rgds
Denis McMahon
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2011-12-11 00:52 +0100 |
| Message-ID | <1887817.szhCJVPRqE@PointedEars.de> |
| In reply to | #9107 |
Denis McMahon wrote:
> On Sat, 10 Dec 2011 12:16:47 +0000, Tim Streater wrote:
>> But I'd still like to know whether:
>>
>> mydocPtr = document.createElement('document');
>>
>> is allowed.
>
> I think that for an html document, document.createElement has to take a
> valid html element name.
>
> A simple empirical test suggests that it won't work in all browsers. ;)
Please publish your results so that people who are still doing it are given
something to think about.
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
[toc] | [prev] | [next] | [standalone]
| From | Dr J R Stockton <reply1150@merlyn.demon.co.uk> |
|---|---|
| Date | 2011-12-13 19:52 +0000 |
| Message-ID | <1apCv0K6z65OFwMW@invalid.uk.co.demon.merlyn.invalid> |
| In reply to | #9065 |
In comp.lang.javascript message <timstreater-095030.23590509122011@news. individual.net>, Fri, 9 Dec 2011 23:59:05, Tim Streater <timstreater@greenbee.net> posted: >Mmmm, nice idea. I do have a variable number of these tables, but that >wouldn't create an insurmountable problem. More of a problem is that I >would then have id conflicts - each table has a similar set of row- >id's. I expect I could get around this too at the expense of a certain >amount of recoding. > >Is there anything wrong (or dangerous) about what I'm considering, that >you know of? My <http://www.merlyn.demon.co.uk/holidays.htm> has a number of tables constructed by writing their computed HTML. The tables are all essentially the same, but constructed in accordance with a data object which gives the number of rows and their content. One column can be re- computed by altering its heading cell. As I recall, or at least as I would do it now, all addressing of elements within a table is relative to that table, not global. If I were starting again, I'd build the table by DOM methods, as in js- props.htm or more accurately inc-prop.js. IMHO, getElementById is something like GO TO (GOTO?) in FORTRAN; one should use it as little as practical. -- (c) John Stockton, nr London UK ?@merlyn.demon.co.uk IE8 FF8 Op11 Sf5 Cr15 news:comp.lang.javascript FAQ <http://www.jibbering.com/faq/index.html>. <http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources. <http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
[toc] | [prev] | [next] | [standalone]
| From | Gene Wirchenko <genew@ocis.net> |
|---|---|
| Date | 2011-12-13 17:29 -0800 |
| Message-ID | <hrufe79d6t4i8pgvcukl6rc6rhre8kvj9p@4ax.com> |
| In reply to | #9200 |
On Tue, 13 Dec 2011 19:52:26 +0000, Dr J R Stockton <reply1150@merlyn.demon.co.uk> wrote: [snip] >IMHO, getElementById is something like GO TO (GOTO?) in FORTRAN; one >should use it as little as practical. 1) In very few cases are spaces significant in Fortran. You can use either. Note the change in the spelling of "Fortran". It used to be all caps. It is not now. 2) Thank you for the excuse to not use getElementById. Sincerely, Gene Wirchenko
[toc] | [prev] | [next] | [standalone]
| From | Dr J R Stockton <reply1150@merlyn.demon.co.uk> |
|---|---|
| Date | 2011-12-15 21:51 +0000 |
| Message-ID | <kz5WlAe1vm6OFwU4@invalid.uk.co.demon.merlyn.invalid> |
| In reply to | #9205 |
In comp.lang.javascript message <hrufe79d6t4i8pgvcukl6rc6rhre8kvj9p@4ax.
com>, Tue, 13 Dec 2011 17:29:00, Gene Wirchenko <genew@ocis.net> posted:
>On Tue, 13 Dec 2011 19:52:26 +0000, Dr J R Stockton
><reply1150@merlyn.demon.co.uk> wrote:
>
>[snip]
>
>>IMHO, getElementById is something like GO TO (GOTO?) in FORTRAN; one
>>should use it as little as practical.
>
> 1) In very few cases are spaces significant in Fortran. You can use
>either. Note the change in the spelling of "Fortran". It used to be
>all caps. It is not now.
I ceased using FORTRAN long before any such new-fangled ideas.
I recall one case where spacing was significant. This was in some
version of HP FORTRAN, not that it matters. A colleague complained of
an inscrutably failing COMMON statement. I don't recall the variable
names, but the code resembled
COMMON THIS, THAT, ..., ..., ..., THING, TOTHER,
C SOMETHINGELSE
but TOTHER just did not act as a COMMON, although all the others did.
We stared at the screen in disbelief. Eventually I observed that TOTHER
started in a position which might well have been column 73 or 74, and
light dawned. Had he not put spaces after his commas ...
--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05.
Website <http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc. : <http://www.merlyn.demon.co.uk/programs/> - see in 00index.htm
Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.
[toc] | [prev] | [next] | [standalone]
| From | Gene Wirchenko <genew@ocis.net> |
|---|---|
| Date | 2011-12-15 15:53 -0800 |
| Message-ID | <u02le7le00l070silv0i7d77k7529bb24q@4ax.com> |
| In reply to | #9289 |
On Thu, 15 Dec 2011 21:51:49 +0000, Dr J R Stockton
<reply1150@merlyn.demon.co.uk> wrote:
[snip]
>I recall one case where spacing was significant. This was in some
>version of HP FORTRAN, not that it matters. A colleague complained of
>an inscrutably failing COMMON statement. I don't recall the variable
>names, but the code resembled
>
> COMMON THIS, THAT, ..., ..., ..., THING, TOTHER,
> C SOMETHINGELSE
>
>but TOTHER just did not act as a COMMON, although all the others did.
>We stared at the screen in disbelief. Eventually I observed that TOTHER
>started in a position which might well have been column 73 or 74, and
>light dawned. Had he not put spaces after his commas ...
Column 73 and on have bitten more than a few people.
When I was taking a COBOL course in my diploma, I was very
careful about column 73. Any other student would have been wondering
what I was about.
Sincerely,
Gene Wirchenko
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web