|
Posted by Toby Inkster on 11/14/06 15:34
Terry Liittschwager wrote:
> I must admit that it really surprises me there is no provision in the
> language itself for doing this directly.
If you allowed includes in HTML, then you could have this situation:
<div>
I am in a DIV.
<include file="foo.html">
I am in the same DIV.
</div>
Where "foo.html" is:
</div>
<div>
Then the meaning, and the generated tree of the first document is
changed when the second file loads up. For this reason, it has always
been that when an HTML file is sent to a browser, it is always the whole
thing in one file.
This doesn't mean that you can't keep your navigation bar separate: it
just means that the inclusion must happen *before* the page gets sent to
the browser -- i.e. on the server.
That's the logic of it anyway.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|