I tried using the SSI and the JavaScript to view the menu locally, and it works great. But, I got tired of having to keep 2 files updated, and one day realized the JavaScript would work alone without the include file online, and on the local machine. The only drawback, is if a viewer has JavaScript turned off, they will see no menu. To work around that use the .<noscript>"You must have JavaScript enabled to properly view this page.".</noscript> on the page next to the JavaScript call. So, you'll have the best of both worlds. Jim 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.
Good One Jim Certainly solves problem of SSI on local I have tried and it seems to work ok online re navigation html etc Except SSI #echo var="LAST_MODIFIED" does not work and I assume any other Date etc functions And I need to add the Noscript function - how many people would not have Javascript turned on? Any other performance etc issues that anyone can think of Ron Lankshear -Sydney NSW (from London-Shepherds Bush/Chiswick) try my links http://freepages.rootsweb.ancestry.com/~lankshear/ On 2011-02-14 12:07 PM, JAMES H ALBRO wrote: > I tried using the SSI and the JavaScript to view the menu locally, and it works great. But, I got tired of having to keep 2 files updated, and one day realized the JavaScript would work alone without the include file online, and on the local machine. The only drawback, is if a viewer has JavaScript turned off, they will see no menu. To work around that use the .<noscript>"You must have JavaScript enabled to properly view this page.".</noscript> on the page next to the JavaScript call. So, you'll have the best of both worlds. > Jim