Query on arrays of controls

D

Dr John Stockton

JRS: In article <[email protected]>, seen in
news:comp.lang.javascript said:
But I could, I think, DynWrite[1] the whole Table into a <div> after the
page is loaded ... which is not needed, so I can document.write it
during page loading ... which, by parameterising the data, may well
reduce the page size.

Yes. If the page critically depends on Javascript anyway, creating the
content with Javascript isn't a problem. If the page can be used
without Javascript, then making it dependent is inferior.

Without the tabular content, the page is of little use. But I'm
beginning to feel that without Javascript to do it automatically, the
page <URL:http://www.merlyn.demon.co.uk/holidays.htm> might not get
updated.

H'mmm - the data could be in an include file, which would open the door
to production of, say, a Danish version of the Table ...
 
M

Michael Winter

Dr John Stockton wrote on 28 Nov 2003:
JRS: In article
<[email protected]>, seen in
Michael Winter


Not so; I have done it.

It may be that one should not do it; or that there is no
authority for doing it; or that current authority explicitly
disallows it; or that it does not always work; but it can be
done.

In another post (my reply to Mr Nielsen's post of Thu 27 @ 8:29:27),
I suggested that one should ignore what you quoted. I basically
misread the specification and made dangerous assumptions.

Apologies,
Mike
 
D

Dr John Stockton

JRS: In article <[email protected]>, seen in
Thomas 'PointedEars' Lahn
I do not know Dynwrite, but suppose it to be a method using
document.write(...).

It is not.

To contribute to a newsgroup without bothering to read the regularly-
posted FAQ is either stupid or arrogant or unhelpful (or != xor).

With your self-acknowledged vast knowledge of the language, you should
have known that it is not a function specified by ECMA, Microsoft, etc.;
and you should have realised that I would not have referred to it in
that manner if I had not thought that regulars here should know about
it.

You may, of course, feel that you know so much that no FAQ can possibly
teach you anything.

But a knowledge of the contents of the FAQ would enable you to see that
some questions are best answered by citing it, rather than by repeating
well-known material. Citing the FAQ may pre-empt other questions.

And it is always possible that you might be able to suggest improvements
to the FAQ.

As regards DynWrite : it may be less worthwhile if only the latest
browsers are to be supported; nevertheless, if a script can use it
several times, IMHO using a version of DynWrite is still worthwhile
since it expresses the action, the source, and the destination without
encumbering the statement with mechanism.

Insufficient use of subroutines is one of the three commonest faults one
sees in code posted here, possibly omitting faults-of-detail.
 
D

Dr John Stockton

JRS: In article <[email protected]>, seen in
Without the tabular content, the page is of little use. But I'm
beginning to feel that without Javascript to do it automatically, the
page <URL:http://www.merlyn.demon.co.uk/holidays.htm> might not get
updated.

H'mmm - the data could be in an include file, which would open the door
to production of, say, a Danish version of the Table ...

More or less done, AFAICS, except that there is not yet provision for
supplying the Danish words for "Annual Holidays", "Holiday", "Month,
"Day", which should be easy enough.

There's currently no Include file; the code for a big Object defining
the holidays and selecting their rules needs to be pasted into a
TextArea. Data and rule-types for the British Isles and for North
America are built in, however.

The draft is at <URL:http://www.merlyn.demon.co.uk/hols.htm>.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,436
Messages
2,571,696
Members
48,796
Latest member
Greg L.
Top