Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #37811
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: Calling an include file by using JavaScript ? |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | <9bab4aea-6cd1-4c20-a953-8f02509189af@googlegroups.com> <XnsAB0AE7E4C90A5eejj99@194.109.6.166> <aa163932-19f0-471a-a089-03658d17f307@googlegroups.com> |
| Date | 2019-11-19 11:41 +0100 |
| Message-ID | <XnsAB0C76DD2CADCeejj99@194.109.6.166> (permalink) |
dr.j.r.stockton@gmail.com wrote on 18 Nov 2019 in comp.lang.javascript:
> On Sunday, 17 November 2019 21:48:20 UTC, Evertjan. wrote:
>> JRS wrote on 17 Nov 2019 in comp.lang.javascript:
>
>> > ...
>
>> Add this to the code in C.js:
>
>> ...
>
>> let fileref = document.createElement('script');
>> fileref.type = 'text/javascript';
>> fileref.src = 'D.js';
>> document.querySelector('head').appendChild(fileref);
>
>
> Thanks, that seems fine; a (test) alert call at the start of D.js is
> called, and the code in D.js gives an expected error message (that code
> so far is pseudo-code written in valid JavaScript. [ Here, D is short
> for INC-LOOP ]
Ensure the htmlpage has, next to the link to C.js with the above:
<body>First line
And fill, for testing, D.js with:
document.body.innerHTML += '<br>Jet another line';
>> Much more versatile imho is,
>> to do this with serverside includes
>
> Serverside not at present available, and for some of the work will not
> exist.
>
> I did try writing the variables in Dutch, in your honour; but I found it
> confusing and have kept only Kettingen.
The advantage of Dutch variable names is,
next to the joy of it,
that you are less bothered with 'reserved' words.
> Dutch, in your honour
Thank you,
I take somewhat less pride than usual in being British, these days.
What letting Gaelic and Cymraeg variable names 'de honneurs waarnemen'?
<https://www.nrc.nl/nieuws/2005/12/13/de-honneurs-waarnemen-11055631-
a1151289>
--
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
Calling an include file by using JavaScript ? dr.j.r.stockton@gmail.com - 2019-11-17 12:52 -0800
Re: Calling an include file by using JavaScript ? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-11-17 22:47 +0100
Re: Calling an include file by using JavaScript ? dr.j.r.stockton@gmail.com - 2019-11-18 10:00 -0800
Re: Calling an include file by using JavaScript ? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-11-19 11:41 +0100
Re: Calling an include file by using JavaScript ? dr.j.r.stockton@gmail.com - 2019-11-18 15:36 -0800
Re: Calling an include file by using JavaScript ? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2019-11-17 21:48 +0000
Re: Calling an include file by using JavaScript ? Arno Welzel <usenet@arnowelzel.de> - 2019-11-19 11:37 +0100
Re: Calling an include file by using JavaScript ? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-11-19 11:54 +0100
csiph-web