Automatically Importing

K

keith

I am looking to be able to automatically import text on a regular basis in
order to update a home page. I was hoping to use a flat file or word in
order to be able to accomplish this. I needed it to happen automatically and
without frontpage being open. Anybody have any ideas? Needing any
suggestions.
 
T

Trevor L.

keith said:
I am looking to be able to automatically import text on a regular
basis in order to update a home page. I was hoping to use a flat
file or word in order to be able to accomplish this. I needed it to
happen automatically and without frontpage being open. Anybody have
any ideas? Needing any suggestions.

I acquired a program named Dolt from David Doward, written in Perl, which
does an automatic include, similar to the FP include, but FP does not need
to be open.

My source HTML file look like this
<body onload="getHeading();greet();auPreload();addfavs();">
<div>
<!--* header.txt *-->

<!-- next line -->

The comments <!--* header.txt *--> is read by the script and at that point
in the file, the named file (header.txt) is included (from a directory named
in the script)and written to another directory (also named in the script).

So my output HTML file looks like
<body onload="getHeading();greet();auPreload();addfavs();">
<div>
<!-- header.txt -->
<!--[if IE]>
<div class="parch2">
<![endif]-->

<![if !IE]>
<div class="parch">
<![endif]>

Blah Blah Blah
<!-- End header.txt -->

<!-- next line -->

Everything between (and including) <!-- header.txt --> and <!-- End
header.txt --> is the contents of header.txt
The comment <!--* header.txt *--> is not written to the output.

I quite like it.
A few points:
1. I don't think David is a member of this NG.
2. He has it available for free use on his webiste, together with a download
of Perl interpreter
3. This is the website with the script http://dorward.me.uk/software/dolt/
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top