TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
RE: Including content of one file of HTML in another?
Subject:RE: Including content of one file of HTML in another? From:bryan -dot- westbrook -at- amd -dot- com To:"TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com> Date:Wed, 19 Dec 2001 14:46:35 -0600
-----Original Message-----
From: Hart, Geoff [mailto:Geoff-H -at- mtl -dot- feric -dot- ca]
Sent: Wednesday, December 19, 2001 2:40 PM
To: Techwr-L (E-mail); Westbrook, Bryan
Subject: Including content of one file of HTML in another? (take III,
and out)
Bryan Westbrook observed that: <<....although the change might be
automatically made to all of the pages, you still have to re-upload all of
the changed pages (unless you're editing on the server). With an include,
you only have to upload the revised version of the include file to change
all of the pages.>>
Interesting. If the includes represent a large chunk of data, that could
provide a very significant performance advantage. But does the "includepage"
feature use standard HTML? If not, it probably requires Microsoft components
------------------------------
If you use JavaScript, instead of ASP, it should work with any server and any JS compliant browser. As for performance, I don't know about the JS version, but with ASP there is a slight lag while it compiles the file if you use a lot of includes (like the hundreds in my "dictionary" page).
I was mistaken earlier in attributing the information to Eric. His message was about using PHP. Here is the message I was talking about for the JavaScript (I haven't tried this, either, because I've got ASP here):
-----Original Message-----
From: Christine -dot- Anameier -at- seagate -dot- com
[mailto:Christine -dot- Anameier -at- seagate -dot- com]
Sent: Monday, August 13, 2001 1:03 PM
To: TECHWR-L
Subject: Re: Directly inserting html text
I think you can do this with a javascript include.
Save the shared text in a .js file (use document.write):
document.write('<b>Hello world</b>');
Then put this in the spot where you want the shared text to show up:
<SCRIPT LANGUAGE="JavaScript" type="text/javascript" src="myInclude.js"></SCRIPT>
Haven't done this myself, but I've run across this technique on the net.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Collect Royalties, Not Rejection Letters! Tell us your rejection story when you
submit your manuscript to iUniverse Nov. 6 -Dec. 15 and get five free copies of
your book. What are you waiting for? http://www.iuniverse.com/media/techwr
---
You are currently subscribed to techwr-l as: archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit http://www.raycomm.com/techwhirl/ for more resources and info.