Reply to Re: newbie navbar question

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация