HighDots Forums  

newbie: include navigation file without ssi?

alt.html alt.html


Discuss newbie: include navigation file without ssi? in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
junkyard@jaggerdog.com
 
Posts: n/a

Default newbie: include navigation file without ssi? - 08-08-2006 , 10:43 AM






Hello,

I am new to html programming and have a question I hope someone can
help me with. I am working on a project to organize a lot of technical
information as a series of webpages. This information will ultimately
be distributed to users on a cd, and we don't want the users to have to
install anything, just bring up a browser and go to town.

My problem is that I have read about (and created) a navigation/menu
system using html and css. I would like the nav menu to appear at the
top of each page, yet have the source code appear in only one file, for
ease of maintenece. I read about using server side includes to
accomplish this, but will that work given that I need to ultimately
distribute this package on a cd without knowing what the user will have
installed on their machine (besides a browser)? if it is possible, how
would I go about setting it up?

If it's not possible, is there some other way to accomplish this?

thanks for your help!
mn


Reply With Quote
  #2  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: newbie: include navigation file without ssi? - 08-08-2006 , 10:57 AM






junkyard (AT) jaggerdog (DOT) com wrote:
Quote:
Hello,

I am new to html programming and have a question I hope someone can
help me with. I am working on a project to organize a lot of technical
information as a series of webpages. This information will ultimately
be distributed to users on a cd, and we don't want the users to have to
install anything, just bring up a browser and go to town.

My problem is that I have read about (and created) a navigation/menu
system using html and css. I would like the nav menu to appear at the
top of each page, yet have the source code appear in only one file, for
ease of maintenece. I read about using server side includes to
accomplish this, but will that work given that I need to ultimately
distribute this package on a cd without knowing what the user will have
installed on their machine (besides a browser)? if it is possible, how
would I go about setting it up?

If it's not possible, is there some other way to accomplish this?

thanks for your help!
mn

One approach is global search and replace. For example, put the
following lines in each file:

---Begin Template 1 Here---
---End Template 1 Here---

and then use a tool like ReplacEm from http://www.orbit.org/replace/
that will let you insert code of your choice between two predefined
lines like the ones above, and later will let you replace whatever code
might have been between those lines previously with a new version. You
can run ReplacEm over a whole hierarchy of nested directories. It
provides several ways to save the previous versions in case you need to
revert.


Reply With Quote
  #3  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: newbie: include navigation file without ssi? - 08-08-2006 , 10:59 AM



Harlan Messinger wrote:
[...]
Quote:
and then use a tool like ReplacEm from http://www.orbit.org/replace/
that will let you insert code of your choice between two predefined
lines like the ones above, and later will let you replace whatever code
might have been between those lines previously with a new version. You
can run ReplacEm over a whole hierarchy of nested directories. It
provides several ways to save the previous versions in case you need to
revert.
Two things: (1) I meant to mention that ReplacEm is free. (2) The URL I
gave is legacy. The up-to-date URL is http://www.fitsoftware.com/.


Reply With Quote
  #4  
Old   
Andy Dingley
 
Posts: n/a

Default Re: newbie: include navigation file without ssi? - 08-08-2006 , 11:25 AM




junkyard (AT) jaggerdog (DOT) com wrote:

Quote:
My problem is that I have read about (and created) a navigation/menu
system using html and css. I would like the nav menu to appear at the
top of each page, yet have the source code appear in only one file, for
ease of maintenece. I read about using server side includes to
accomplish this, but will that work given that I need to ultimately
distribute this package on a cd
Two ways.

Do it with SSI. Burn it onto the CD by taking a copy via HTTP. Use any
"backup this web site to disk" program, such as the many Firefox
extensions.

Do it without SSI. Write your pages as SSI, then write/find a simple
Perl/Python script that does the equivalent to SSI by copying these
static pages to a new directory tree, merging in any SSI that they find.



Reply With Quote
  #5  
Old   
Paul Watt
 
Posts: n/a

Default Re: newbie: include navigation file without ssi? - 08-08-2006 , 05:24 PM




<junkyard (AT) jaggerdog (DOT) com> wrote

Quote:
Hello,

I am new to html programming and have a question I hope someone can
help me with. I am working on a project to organize a lot of technical
information as a series of webpages. This information will ultimately
be distributed to users on a cd, and we don't want the users to have to
install anything, just bring up a browser and go to town.

My problem is that I have read about (and created) a navigation/menu
system using html and css. I would like the nav menu to appear at the
top of each page, yet have the source code appear in only one file, for
ease of maintenece. I read about using server side includes to
accomplish this, but will that work given that I need to ultimately
distribute this package on a cd without knowing what the user will have
installed on their machine (besides a browser)? if it is possible, how
would I go about setting it up?

If it's not possible, is there some other way to accomplish this?

thanks for your help!
mn

for ease you could always use a iframe, not pretty but it avoids scripting.
--
Cheers

Paul
le singe est dans l'arbre
http://www.paulwatt.info




Reply With Quote
  #6  
Old   
junkyard@jaggerdog.com
 
Posts: n/a

Default Re: newbie: include navigation file without ssi? - 08-09-2006 , 08:09 AM



thanks for the suggestion, I checked it out and it will do what I need
it to.

thanks,
mn

Harlan Messinger wrote:
Quote:
Harlan Messinger wrote:
[...]
and then use a tool like ReplacEm from http://www.orbit.org/replace/
that will let you insert code of your choice between two predefined
lines like the ones above, and later will let you replace whatever code
might have been between those lines previously with a new version. You
can run ReplacEm over a whole hierarchy of nested directories. It
provides several ways to save the previous versions in case you need to
revert.

Two things: (1) I meant to mention that ReplacEm is free. (2) The URL I
gave is legacy. The up-to-date URL is http://www.fitsoftware.com/.


Reply With Quote
  #7  
Old   
Joe
 
Posts: n/a

Default Re: newbie: include navigation file without ssi? - 08-09-2006 , 09:53 PM



In article <1155048196.704727.211960 (AT) p79g2000cwp (DOT) googlegroups.com>,
junkyard (AT) jaggerdog (DOT) com says...
Quote:
Hello,

I am new to html programming and have a question I hope someone can
help me with. I am working on a project to organize a lot of technical
information as a series of webpages. This information will ultimately
be distributed to users on a cd, and we don't want the users to have to
install anything, just bring up a browser and go to town.

My problem is that I have read about (and created) a navigation/menu
system using html and css. I would like the nav menu to appear at the
top of each page, yet have the source code appear in only one file, for
ease of maintenece. I read about using server side includes to
accomplish this, but will that work given that I need to ultimately
distribute this package on a cd without knowing what the user will have
installed on their machine (besides a browser)? if it is possible, how
would I go about setting it up?

If it's not possible, is there some other way to accomplish this?

thanks for your help!
mn


Google for "server2go".
It's a nice little app that you put on the CD. When you insert the CD,
Server2Go fires up, loads IE (unfortunately - instead of the machines
default) and everything works like it ought to.
I use it on a USB stick.


Reply With Quote
  #8  
Old   
Adrienne Boswell
 
Posts: n/a

Default Re: newbie: include navigation file without ssi? - 08-14-2006 , 11:11 PM



Gazing into my crystal ball I observed junkyard (AT) jaggerdog (DOT) com writing in
news:1155048196.704727.211960 (AT) p79g2000cwp (DOT) googlegroups.com:

Quote:
Hello,

I am new to html programming and have a question I hope someone can
help me with. I am working on a project to organize a lot of technical
information as a series of webpages. This information will ultimately
be distributed to users on a cd, and we don't want the users to have to
install anything, just bring up a browser and go to town.

My problem is that I have read about (and created) a navigation/menu
system using html and css. I would like the nav menu to appear at the
top of each page, yet have the source code appear in only one file, for
ease of maintenece. I read about using server side includes to
accomplish this, but will that work given that I need to ultimately
distribute this package on a cd without knowing what the user will have
installed on their machine (besides a browser)? if it is possible, how
would I go about setting it up?

If it's not possible, is there some other way to accomplish this?

thanks for your help!
mn

1. You could use Server2go <http://www.server2go-web.de/> - a server that
can be put on a CD (I haven't tried it but I saw it in a thread here a
while back)
2. Use a preprocessor as others have suggested
3. Use frames - this is one of the few instances where frames might be
okay, especially since they can be resized, and the user probably isn't
going to be bookmarking.


--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share



Reply With Quote
  #9  
Old   
Joe
 
Posts: n/a

Default Re: newbie: include navigation file without ssi? - 08-15-2006 , 06:20 PM



In article <Xns981FCD55BF05Earbpenyahoocom (AT) 69 (DOT) 28.186.121>,
arbpen (AT) yahoo (DOT) com says...
Quote:
Gazing into my crystal ball I observed junkyard (AT) jaggerdog (DOT) com writing in
news:1155048196.704727.211960 (AT) p79g2000cwp (DOT) googlegroups.com:

Hello,
{?webpage on a CD}
mn


1. You could use Server2go <http://www.server2go-web.de/> - a server that
can be put on a CD (I haven't tried it but I saw it in a thread here a
while back)
yes, that's the one. I could NOT find the url when I suggested it
earlier. Thanks Adrienne.

Quote:
2. Use a preprocessor as others have suggested
3. Use frames - this is one of the few instances where frames might be
okay, especially since they can be resized, and the user probably isn't
going to be bookmarking.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.