homepage Welcome to WebmasterWorld Guest from 54.167.10.244
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Importing external HTML file
trevpope




msg:562023
 9:34 am on Sep 6, 2002 (gmt 0)

Is it possible to link an external text file containing HTML into the body of other HTML files??

 

aspdaddy




msg:562024
 9:45 am on Sep 6, 2002 (gmt 0)

.shtml files can do this, you can do a server side include with this extention on a windows nt server at least.

There are some issues with this, some hosts forbid using it because of security - I dont know exactly what the issues are here.

estjohn




msg:562025
 10:07 am on Sep 6, 2002 (gmt 0)

As far as I know the SSI security issue relates only to EXECuting a script from the ssi call. It's unlikely that would cause a problem if done correctly but in theory it could. Otherwise ssi is ok.

You can do quite a bit with XSSI (extended server-side includes), such as using logic and query strings to determine what you want to include, manipulate templates based on time, browser detection and other stuff. Nice little webmaster tool to have.

SSI isn't default for most web servers so your hosting co. may have to "turn them on" if they don't work for you right away.

Try this url for more info:
[uic.edu...]

Have fun...

choster




msg:562026
 5:43 pm on Sep 6, 2002 (gmt 0)

Are you interested in the content or the display? If the latter, you can simply use an IFRAME [htmlhelp.com].

jatar_k




msg:562027
 5:56 pm on Sep 6, 2002 (gmt 0)

Welcome to WebmasterWorld trevpope

What type of server are you on and do you have any scripting languages available? These two answers would give us the information to give you a better answer.

All servers/scripting languages have methods of including files within other files but it is dependant on what you have available.

Random Terrain




msg:562028
 5:33 am on Sep 21, 2002 (gmt 0)

I use Homestead which does not allow us to use anything beyond HTML and Java. No PHP, CGI, ASP, FBI, NBC, ABC, CBS, BR549, and so on. Is there a way to use an external HTML file (or piece of code) on multiple pages? I know there's something similar you can do with Javascript, but that doesn't help much if you want to include normal HTML. Here's a page about it:

[htmlgoodies.com...]

In case you want to know, if we Homestead users want to add code to our WYSIWYG pages, we use "HTML snippets." There are two things I would like to do using those snippets.

1. Make one navigation HTML file that can be read from an HTML snippet on each page. That way I can change the navigation in the future and only have to do it one time, instead of over 125 times.

2. Place a text messsage in an external file that can be read from an HTML snippet on each page that will display any message such as the copyright date, or whatever message I might want to display on all pages. Much easier than doing one page at a time.

I know you can do something similir using frames, but many people hate frames, so I would like to find another way (that will also work with most browsers).

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved