html? ssi? javascript? how do i….

  • Avatar

    Posted: 25 January 2002 06:20 PM

    I’ve been running several sites for a while, all coded by simpletext (and appleworks when the files get too long), and was wondering if there’s a way to make a code for (example) the navagation bar on a separate file for all the pages on a site?

    I’m going to be moving out of the area in about a year and a half, and am going to have to hand over a site to someone else (almost definatly with less html experience than me) and i’d like to make the site less confusing to them.

    not SUPER urgent, but if you can help, it’d be greatly appreciated.

    Thanks,
    -Louie

    Signature

    -Louie

         
  • Posted: 23 January 2002 11:36 AM #1

    I think SSI would be a nice way of doing it, because from the user’s perspective they won’t even know you did anything different.  The down side is you need to make sure you are on a server that supports SSI.

    Another option is using frames, though I think this should be the last resort.  While they can be a pain for bookmarking,  (and many people just don’t like them) the clear benefit is that it does not matter what server you are on.

         
  • Avatar

    Posted: 24 January 2002 12:27 AM #2

    I agree with Mr. Nelson.

    SSI is the way to go on this one. I like doing them on any site I build just for the sheer ease of changing one file to update a 600-page site. The coding is also a lot simpler than most people think.  MacWorld Magazine actually had an article on this two months ago. Of course, you could always find the code on the net somewhere.

    Actually…I think, if I remember right…<!—#include virtual=“then path of file”—>

    You can also do it this way: <!—#include=“filename”—>

    Then changing menus and looks and stuff is easy as just one file.

    I tend to do this for all parts of a site that change constantly. File sizes are smaller, and the end user is not aware of it a single bit.  Check out http://www.reddingdiscount.com or my Mac Sightings site for a menu implementation using SSI’s.

    Now, as Mr. Nelson pointed out, finding a server that allows SSI’s is a task. Windows NT does, as does a Mac Server with the right set up. But I have found that some flavors of Unix do not.

    Good luck. 

    Signature

    Remember what Obi-Wan said to Luke: “Oops! There goes your shirt!”

    Silent Hill Resorts - A forum for the intelligent, mature Silent Hill fan to visit.

         
  • Avatar

    Posted: 24 January 2002 12:52 AM #3

    SSI is the way to do that, for sure.  TMO uses SSI extensively, FWIW.

    Signature

    Editor - The Mac Observer

    Favorite (but less relevant than it used to be) Quote: Microsoft’s tyranny lies not in its success, but in the way it achieved and maintains that success.

         
  • Posted: 24 January 2002 03:54 PM #4

    On 2002-01-24 04:27, Spider wrote:
    But I have found that some flavors of Unix do not.

    Also note that it’s likely that these Unix servers you encountered simply had it turned off.  I know Mac OS X has it turned off by default, but it can be turned on if you know what you’re doing or if you get instructions.

    _________________
    David Nelson
    TMO Mac Specialist

    <font size=-1>[ This Message was edited by: David Nelson on 2002-01-24 19:55 ]</font>

         
  • Posted: 24 January 2002 06:32 PM #5

    David,
    I’m running Mac OS X Server on a G4.
    I turned on ssi by going to the Server Admin > Configure Web Service > mime types
    and adding the suffix html > server parsed.

    this allows me to use ssi in .html files as well as .shtml files.
    (ssi worked by default in .shtml files)

    However, I cannot figure out how to keep executables from being run in ssi, for example <!—exec=“cmd ls -l”—>
    My reading said add Options IncludesNoExec to the httpd.conf file but I tried but no go. Nothing changed.
    Any ideas?
    TIA
    Dan

         
  • Avatar

    Posted: 25 January 2002 09:49 AM #6

    bryan (or anyone else thats an SSI master)

    do both the main page and the SSI be located on a SSI enabled server, or just one or the other?

    also,
    does anyone know of a free SSI enabled server that doens’t annoy with pop-ups?

    thanks,
    -Louie

    Signature

    -Louie

         
  • Posted: 25 January 2002 03:08 PM #7

    On 2002-01-24 22:32, Anonymous wrote:
    I’m running Mac OS X Server on a G4.
    I turned on ssi by going to the Server Admin > Configure Web Service > mime types and adding the suffix html > server parsed.

    Thanks for pointing that out.  However, I’m using Mac OS X, not Mac OS X Server, so I did it the old fashioned way and used the Terminal. 

         
  • Avatar

    Posted: 25 January 2002 06:20 PM #8

    On 2002-01-25 13:49, L0u13 wrote:
    bryan (or anyone else thats an SSI master)

    do both the main page and the SSI be located on a SSI enabled server, or just one or the other?

    I don’t think that will work. Bryan might know more than I on that part as I have never tried including a page from another server. As far as I know, SSI have to from the same server.

     

    Signature

    Remember what Obi-Wan said to Luke: “Oops! There goes your shirt!”

    Silent Hill Resorts - A forum for the intelligent, mature Silent Hill fan to visit.