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

Have you looked at the new content on TECHWR-L lately?
See http://www.raycomm.com/techwhirl/ and check it out.

---
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.


Follow-Ups:

Previous by Author: RE: Including content of one file of HTML in another?
Next by Author: RE: Tech writing course in vo-tech curriculum
Previous by Thread: RE: Including content of one file of HTML in another?
Next by Thread: RE: Including content of one file of HTML in another?


What this post helpful? Share it with friends and colleagues:


Sponsored Ads