|
Posted by Harlan Messinger on 01/22/33 11:59
Richard wrote:
> freemont <yabba@dabba.doo> writes:
>
>> On Thu, 28 Sep 2006 21:00:02 +0200, Richard wrote:
>>
>>> What is best way to "include" such a table so that the html is not
>>> duplicated?
>>>
>>> many thanks for any pointers.
>> http://tinyurl.com/gvdd6 ;-)
>
> So there is no common HTML "defined" way?
What's in the HTML is the client's business. The only thing an HTML
server does with a page is blindly copy it to the output stream being
sent to the client. There isn't a means in HTML to tell the server to do
something other than that because the server would never notice it. If
you want such a marker to be noticed, you need something that isn't only
an HTML server, like the ASP processor in IIS, an SSI or PHP processor, etc.
> My stuff is currently hosted
> on an MS Server - and that means using ASP if I want server side
> includes to work. I dont want to have .asp files because I want to
> seamlessly share the files to a Unix server shortly without having to
> rename files back to html.
Change the extension to .shtml and the SSI processor in IIS will kick in
and do what you want without resorting to ASP. I believe .shtml works as
well on your average Unix server, though I'm not very knowledgeable
about that.
Alternatively (speaking with reference to IIS 5), you can go into the
App Mappings tab on the Configuration dialog accessed from the Home
Directory properties for your site (or the Virtual Directory properties
for your application) and add a mapping for the .html extension
identical to the existing one for the .shtml extension, though that may
not be a great idea.
>
> I guess I was kind of hoping that I could somehow encode my table of
> links into the CSS file which is used identically on windows asp or
> unix/linux apache servers.
CSS doesn't do that.
[Back to original message]
|