Click to See Complete Forum and Search --> : Attach HTML like scripts and css...


IxxI
05-27-2003, 09:32 AM
This may seem a strange question but is there a method of adding links to snippets of html in your code. In much the same way as you write

<script src="blah.js type="text/javascript></script>

or

<link rel="stylesheet" href="blah.css" type="text/css">

but for HTML?
Thanks,

IxxI

Charles
05-27-2003, 09:36 AM
Nothing client-side, but there are several ways to do this at the server. Talk to your people and find out what's available there.

khaki
05-27-2003, 10:26 AM
hi xx...

You can use Includes to do that (if your server supports it)

if you can use ASP or SHTML (and I assume PHP)... then you can use SSI

just create a page full of html (and whatever) without the html, head, and body tags.

such as:

<table><tr><td>
DO NOT USE TABLES FOR LAYOUT
</td></tr></table>

and save it as "blah.inc"

then insert a reference to it in your page.

such as:

<!-- #include file="blah.inc" -->

and the table (in this case) will appear on your page wherever you place it in the structure.

(by the way... i don't think that you have to give it the "inc" extension... but i find that it helps to keep things sorted on the server that way)

;) k

IxxI
05-27-2003, 02:37 PM
Thank you khaki, I will try that. I think their server supports that...:)

xx(!)