Forum Moderators: open

Message Too Old, No Replies

Including html code

How is it done?

         

yisraelharris

2:53 pm on Jun 5, 2002 (gmt 0)

10+ Year Member



I just realized something weird:

1. You can include css code client-side, through: <link rel=StyleSheet href="style.css" type="text/css">.

2. You can include javascript code client-side, through:
< script language="JavaScript" src="file.js"> </script>

3. But you can't include plain old html code client-side?!

In other words,
<!--#include myFile.html-->
works only for Server-side ASP?!

Am I missing something or is this really weird?

I have about 50 pages on my client-side only website, and I don't feel like coding the side-menu 50 times!!

Until now I used frameset, but for many reasons I have been convinced that frameset is not good (e.g. you can't bookmark with it.)

Anyone with a bright idea I didn't think of?

Thanks!

rcjordan

3:09 pm on Jun 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It can be done with dhtml, which obviously brings some disadvantages -particularly loss of those that have js off.

Travera's Externally Loading HTML [dhtmlnirvana.com]

Eric_Jarvis

3:56 pm on Jun 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



SSI

something I largely try to avoid though...simply because I'd rather not have anything on a site repeating all that often except for the overall look