PDA

Click to See Complete Forum and Search --> : Include like Asp


Ecniv
Aug 11th, 2004, 05:46 AM
Hi,

I'm pretty sure there isn't a way but:

How can I include a file like you can in asp but for bog standard HTML ?

Mainly for the menu structure - since I'm lazy and want it held in one place.


Vince

mendhak
Aug 11th, 2004, 06:22 AM
<!--#include file="included.html" -->

vbNeo
Aug 11th, 2004, 09:23 AM
That needs to be handled by a server side application ...

DeadEyes
Aug 11th, 2004, 09:35 AM
try object or Iframe

link (http://www.w3.org/TR/REC-html40/struct/objects.html#embedded-documents)

DeadEyes
Aug 11th, 2004, 09:37 AM
You could also create a javascrpt function which pumps out the required html and call that function in each page

vbNeo
Aug 11th, 2004, 09:52 AM
Originally posted by DeadEyes
You could also create a javascrpt function which pumps out the required html and call that function in each page

That really would be a very bad solution, since the HTML would be very hard to type valid, because of ' " '

Ecniv
Aug 11th, 2004, 10:08 AM
I tried the javascript way - assumes the user has it on of course - and I was happy with it. But those who do websites properly and for a living slated it. So I dropped it. I was just wondering if there was an easy way to do the include on noral HTML - guess not. :)

I'll check and see if Blueyonder do Asp for free (no db cons though) then I might be ok.

Cheers for the responses


Vince

mendhak
Aug 12th, 2004, 12:55 AM
Originally posted by vbNeo
That needs to be handled by a server side application ...

Most servers support it.