Re: Text loading question Dec. 10, 2008

Discussion in 'HTML' started by Chris F.A. Johnson, Dec 10, 2008.

  1. On 2008-12-10, E.D.G. wrote:
    > Posted by E.D.G. December 10, 2008
    >
    > Is there an html command that can be used to get text in some file to
    > automatically load into an html document in the same way that a picture file
    > can be loaded with the <IMG SRC="URL"> command?
    >
    > Checking Web sites regarding presently available html commands it does not
    > appear that such a text merging command exists. And it is surprising to me
    > that this is the case.
    >
    > The goal is to have the same text appear within more than one html file just
    > as the same picture file can appear in more than one file. Then when
    > changes are needed in that text they can be made once in the original file.
    > And when any of files containing a link to that text is displayed with a Web
    > browser the text will automatically display in the correct location in that
    > file.


    It's not part of HTML, but you can use SSI (server-side includes):

    <!--#include file="xx.html" -->

    The server may require the including file to use an .shtml extension.


    --
    Chris F.A. Johnson, webmaster <http://Woodbine-Gerrard.com>
    ===================================================================
    Author:
    Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
     
    Chris F.A. Johnson, Dec 10, 2008
    #1
    1. Advertising

  2. Chris F.A. Johnson

    houghi Guest

    E.D.G. wrote:
    >
    >
    > "Chris F.A. Johnson" <> wrote in message
    > news:806cf$49401493$cef88ba3$...
    >>
    >> It's not part of HTML, but you can use SSI (server-side includes):
    >>
    >> <!--#include file="xx.html" -->

    >
    > Thanks. I will give it a try.


    If that does not work, you can look if it has phpand use the include of
    php.

    houghi
    --
    Personally, I think most sports fans are a little "gay". They'd
    rather watch a bunch of sweaty guys jumping all over eachother,
    than, say fashion TV - where hot models walk down the runway.
     
    houghi, Dec 10, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tim Greer
    Replies:
    0
    Views:
    416
    Tim Greer
    Dec 10, 2008
  2. C A Upsdell
    Replies:
    0
    Views:
    407
    C A Upsdell
    Dec 10, 2008
  3. houghi
    Replies:
    1
    Views:
    485
    houghi
    Dec 11, 2008
  4. richard
    Replies:
    2
    Views:
    402
    Jonathan N. Little
    Dec 12, 2008
  5. richard
    Replies:
    0
    Views:
    463
    richard
    Dec 11, 2008
Loading...

Share This Page