๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.javascript
4 messages
4 total messages Started by Eric Fisher Wed, 16 Dec 1998 00:00
Inserting small portions of HTML code
#72
Author: Eric Fisher
Date: Wed, 16 Dec 1998 00:00
5 lines
1026 bytes
I'm looking for a way to insert small portions of HTML code onto
multiple pages.  So when I change the single bit of code, the code on
all pages will be changed.

Any ideas would be GREATLY appreciated!
Re: Inserting small portions of HTML code
#73
Author: Kevin
Date: Fri, 18 Dec 1998 00:00
19 lines
1274 bytes
Server-Side Include.


Eric Fisher wrote:

> I'm looking for a way to insert small portions of HTML code onto
> multiple pages.  So when I change the single bit of code, the code on
> all pages will be changed.
>
> Any ideas would be GREATLY appreciated!

--
Hope this helps,
Kevin
------------------------------------------
Design Department Manager
MYERS INTERNET SERVICES
http://www.myer.com/
Re: Inserting small portions of HTML code
#74
Author: Morten Wang
Date: Fri, 18 Dec 1998 00:00
21 lines
1440 bytes
* Eric Fisher
| I'm looking for a way to insert small portions of HTML code onto
| multiple pages.  So when I change the single bit of code, the code on
| all pages will be changed.

* dei*sign@  me_yer.c om
| Server-Side Include.

not the perfect solution in all cases.  uses up a lot of server
resources.  if _all_ the pages on a web-site needs to be changed you
should instead use a preprocessor to get static pages, thereby putting
less strain on the web-server.  if the number of pages using SSI is only
1 or 2 it is in my opinion better to use.

Lars Marius Garshol has a list of a few preprocessors on his page "HTML
tools" <URL:http://www.stud.ifi.uio.no/~larsga/linker/HTMLtools.html>

Morten!


-- 
Re: Inserting small portions of HTML code
#75
Author: Colm Mac C๏ฟฝrthaigh
Date: Sat, 02 Jan 1999 00:00
14 lines
1269 bytes
>* Eric Fisher
>| I'm looking for a way to insert small portions of HTML code onto
>| multiple pages.  So when I change the single bit of code, the code on
>| all pages will be changed.
>

You could put a javascript source reference on each page like:

<script src="code.src">
</script>

The file code.src would then contain  the necessary document.write()
information to write your HTML on each page without complicated ssi's.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads