• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 216
  • Last Modified:

Embedded File

Question: While creating a web site, I have a signatur file below and a menu bar to the left side. I recall there is a way to make a file contain a menu bar, and i just call it in each of my html files and it will embedded in there. For example I have 4 HTML pages, each got a signature file and a menu bar. If i were to change my signature file, then I must make the changs to all 4 of the HTML pages. Is there a way I can place a signature file in a HTML page, then type a certain code in each of the 4 HMLT pages, so if I change the signature file, the 4 HTML will automatically update itself.
and NO, i am not refering to use FRAME. All of this are done in HTML Tables. Thanks. If still unclear, email me at smilepak@earthlink.net. Thanks again.
0
smilepak
Asked:
smilepak
  • 2
  • 2
1 Solution
 
jbirkCommented:
Yes you can do this with SSI or server side includes.  Depending on your service provider you may have these.  I don't think that earthlink provides that if that's your isp (based on your e-mail).  But they do a real nice job.  Here's an example if an SSI that I use to include a piece of an html file into many different pages which have that same comment part (which does quite frequently get updated):
<!--#include virtual="bottom_links.shtml"-->

ALso I think that there MAY be some html editors which have ftp capabilities built in which will allow this, but what they would do is rmember which files keep the shared part, mark that shared part in the file (probably with comments) and then when you make a change to the shared part, modify all the files on the site to register that change for all the files.  If ANY editors do this it would probably be Front Page, but I don't have it so I wouldn't know.  The best way will always be the SSI route.

Best of luck!
-Josh
0
 
sybeCommented:
SSI commands for including any file into HTML:

<!--#include virtual="/virtual_path_from_root/filename.ext"-->
<!--#include file="relative_path/filename.ext"-->

The extension can be anything, including for example .txt and .gif (the latter is of course quite useless for an HTML file

Files that use SSI commands need a special extension, depending on the server. Very common are .shtml, shtm and .stm. But some servers need other extensions. It those extensions are not used SSI will not work.

Frontpage knows it own includes, but those only work when the web on which the site is running is a Frontpage web (so the webserver must be IIS3 or IIS4 and then be defined as a Frontpage web). You won't find many Frontpage webs on the net, as Frontpage interferes (not to say "messes around") with unpredictably the security.


0
 
jbirkCommented:
Thanks for the clarifications Sybe.  I sometimes take those facts for granted and forget to mention them.

Also thanks for adding that extra info on FP98.  I've heard a lot about it, but never used it, so it's hard for me to say what it does :)

-Josh
0
 
sybeCommented:
np, Josh :)

Additionally it is possible to use javascript "includes" (if your server does not support SSI.

<script src="bottomline.js">
</script>

and bottomline.js would then be some javascript code that display the desired text:

document.write('page maintained by The Author');

This will of course only work with javascript enabled browsers.
0
 
smilepakAuthor Commented:
thanks...

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now