RootsWeb.com Mailing Lists
Total: 3/3
    1. Re: [FreeHelp] include files?
    2. Barry Carlson
    3. On Sunday, February 13, 2011 6:28 PM (UTC+13) Kim Mills wrote - in part:- > Inside that I made a txt file with a basic menu links, no styling yet. > I've > only put one link in, I wanted to see how they look before adding > everything. > <ul id="nav"> > <li><a href="index.html">Home</a></li> > <li><a href="#">Link two</a></li> > <li><a href="#">Link three</a></li> > <li><a href="#">Link four</a></li> > </ul> > Then I go to my web editor I'm using KompoZer right now. I enter the code > <!--#include virtual="_includes/left-menu.txt" --> and nothing shows up, > either in the web editor or on my local host view. I've tried different > paths to the left-menu.txt file so far no luck with any of them... ------------------------ Kim The #include code is effectively a comment in your HTML and will not show locally (unless you are fortunate enough to have a local Apache server). This means, the only way you can try out your includes is to load the file to the server. The server reads and acts on the #include comment and adds the appropriate code to your page. There is another way to view your #includes when working with the file locally, and that is encode the content of the include using Javascript. You do not load the Javascript file to the server, but it makes your page look OK when viewing it locally. Now, I should have a link to the method somewhere (I dreamt it up), but will get back to you when I find it. Barry

    02/13/2011 11:41:21
    1. Re: [FreeHelp] include files?
    2. Pat Geary
    3. At 12:41 AM 2/13/2011, Barry Carlson wrote: >There is another way to view your #includes when working with the file >locally, and that is encode the content of the include using Javascript. You >do not load the Javascript file to the server, but it makes your page look >OK when viewing it locally. > >Now, I should have a link to the method somewhere (I dreamt it up), but will >get back to you when I find it. ============= Scroll to bottom http://www.genealogy-web-creations.com/server-side-includes.htm Thanks to Barry. pat

    02/13/2011 12:18:20
    1. [FreeHelp] Apache and Includes
    2. Billie Walsh
    3. On 02/12/2011 11:41 PM, Barry Carlson wrote: > The #include code is effectively a comment in your HTML and will not show > locally (unless you are fortunate enough to have a local Apache server). This is something I've been wondering about. Would it be possible to install Apache, or some part, on a home computer so the includes would work locally? I realize that it would probably be overkill, but would make trouble shooting easier. And, take some load off the Rootsweb servers when your constantly uploading and checking to see if your latest change works. -- "A good moral character is the first essential in a man." George Washington _ _... ..._ _ _._ ._ ..... ._.. ... .._

    02/13/2011 12:26:11