What I am trying to do is to put a bunch of navigation button, as well as my company logo, into one file, then to "Include" this file in every web page of the web site. Therefore, If I need to change a navigation button, I do not have to go through all web pages.
<!--#include file="HTMLFile.txt" -->
- called asp include but is actually SSI.
Allows you to include the contents of the file in your page - though will only work with a "server processed" page, like an asp,shtm,cfm,jsp. Will write all contents to page (including JavaScript ofcourse...), like document.write() really.
Really? UNIX - bummer. Well, hmmm, I guess if you want to only use JavaScript, then you will need to either document.write() them, or insert using innerHTML. So you could write an external js file which has all the writing stuff, then embed it in the pages - much like an include call - only you have to enclode everything in quotes.
This means you can change the contents of this piece - by altering the code in URLForcode.js. By the way, the only difference here is that SSI include interprets a pure text file for you , as HTML.
b2 - benbiddington@surf4nix.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.