Forum Moderators: open

Message Too Old, No Replies

html Includes

anybody know how to do html includes?

         

Johnor

4:10 pm on Oct 7, 2002 (gmt 0)

10+ Year Member



Can anybody help me out, I just want to know how to do html includes?

Thanks

Johnor

thejenn

4:56 pm on Oct 7, 2002 (gmt 0)

10+ Year Member



Well, to the best of my knowledge you can't really do HTML includes.

You need to use ASP or PHP code, depending on your server type.

If you can tell us what you are hosting on, I'm sure someone can demonstrate the code snippets. It's really quite simple.

Marcia

5:04 pm on Oct 7, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Johnor, if it's an Apache server you can use SSI - server side includes. If you use the site search (upper left) you'll find a lot of discussions on it, and it's very simple.

jatar_k

5:16 pm on Oct 7, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Johnor,

you'll need to find out what server software you are using and what scripting languages are available to you.

With html only there is no way to do includes. With most WYSIWYG software you can have templates etc to help with applying site wide changes but they are not true includes.

chiyo

5:24 pm on Oct 7, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, your host would need to either provide Php, ASP, or SSI capabilities. We used javascript as a way to acheive more or less the same sort of thing before we moved to a more flexible host.. It's actually quite a nice replacement for a lot of what PHP and SSI includes can do if your host does not provide the capability.

SuzyUK

5:35 pm on Oct 7, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If your server supports FrontPage extentions, but none of the rest of the above there is a webbot Front Page code snippet you can use..

if that's any help too, I used these until I too got the extra capabilites

Suzy

Purple Martin

6:47 am on Oct 8, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



We used javascript as a way to acheive more or less the same sort of thing before we moved to a more flexible host.

That solution works very well, but be aware that if the user has JavaScript turned off they won't see your "include".

chiyo

7:49 am on Oct 8, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Good point Purple. Im not sure whether Search engines can index js text; im pretty sure most think that robots don't follow javascript links.

DaveN

7:58 am on Oct 8, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



chiyo, Se's don't,

quick test to see if you server is asp ready

<%
Response.Write("Today is " & Date)
%>

save that to mydate.asp, put in on your server and call it www.yourdomain.com/mydate.asp

That will display todays date if server is asp ready.

DaveN

Johnor

9:02 am on Oct 8, 2002 (gmt 0)

10+ Year Member



Thanks everyone, a great help as always !

Cheers

Johnor