FrontPage Includes

  • Thread starter Effingham Hoofnickel
  • Start date
E

Effingham Hoofnickel

Hi, I'm running IIS5 on Windows 2000 and have FP2002.

I would like my basic program to be able to open an html file and have
access to the code in the file without IIS patching in any FrontPage
includes. In other words I would like to be able to see my code without
using FrontPage. I would like to see "<!--webbot bot="Include"
U-Include="footer.htm" TAG="BODY" -->" instead of whatever is in
'footer.htm'.

Is there anyway to get at your code without using FP? I noticed the same
thing happens when viewing the html with NotePad.

Thanks,
 
K

Kevin Spencer

I would like my basic program to be able to open an html file and have

Define "basic program"
access to the code in the file without IIS patching in any FrontPage

Define "access to the code"
includes. In other words I would like to be able to see my code without
using FrontPage

What code? HTML? What DO you want to be able to see "my code" in?
Is there anyway to get at your code without using FP? I noticed the same
thing happens when viewing the html with NotePad.

HTML? An HTML file is text. You can open it with any text editor.
Define "the same thing"

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
K

Kevin Spencer

Let me take another stab at this. As I re-read it, it seems that you're
complaining that you can't see the raw HTML of your pages you've created in
FrontPage. However, the thing that confuses me is that you mention "the same
thing happens when viewing the HTML in NotePad." Now, I've got to tell you
something here: NotePad doesn't have the capability to display ANYTHING but
text, and HTML is text. Even opening a binary file in NotePad, you will see
text. On top of that, FrontPage 2002 has an HTML tab that allows you to see
the raw HTML of your page in FrontPage. So, I'm completely stumped as to
what sort of problem you could possibly be having.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
S

Steve Easton

Thank you Kevin.
I thought it was just me.

--
Steve Easton
MS MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
E

Effingham Hoofnickel

Hi,

Thanks for the reply. "Basic program" is a program written in Visual
Basic. "Code" is the html code in an html file.
So I mean that when I open an .html file with Visual Basic, or with
NotePad, after it has been saved with FP2002, I see the contents of the
include instead of just the include statement itself.
If I have a file called 'footer.htm' that contains "This is a footer".
And I have a file called index.htm that contains an include statement
such as "<!--webbot bot="Include" U-Include="footer.htm" TAG="BODY" -->"
And I save index.htm with FP2002, and then open index.htm with NotePad,
I will see "This is a footer".
Hope that makes more sense.
The question is, how do I just see the html code for index.htm without
seeing the results of the executed include statement. Either FP2002 is
saving the file with the include 'executed', or IIS is executing the include
when the file is opened with NotePad (or Basic).

Thanks.
PS: By 'opening with Visual Basic', I mean something like

Function ReadFile() as String
Dim sLine as String
Dim sPage as String
Open "index.htm" for input as #1
gosub ReadLine
Close #1
ReadFile = sPage
Exit Sub
ReadLine:
if eof(1) then return
input line #1, sLine
sPage = sPage & sLine & vbcrlf
goto ReadLine
End Sub
 
E

Effingham Hoofnickel

I have a Visual Basic program that updates articles on many different
websites the masters of which are located on my hard drive.
I create a template file in each website space that incorporates include
files and style sheet references that are indiginous to that website. My
program comes along and reads up the template file from a webspace, inserts
content, recalculates relative references and writes out a finished html
file to a new filename and path on the web.
It worked well until I upgraded to FP2002 whereupon I've run into the
aforementioned problem with include references and html files showing up
with the contents of include statements showing up in the template files.
It appears that if I create an html file with NotePad, I can reload the file
and it works correctly - it shows the html code for loading an include file
("<!--webbot bot="Include" U-Include="footer.htm" TAG="BODY" -->" ). If I
open the same file with FP2002 and save it, and then open it with NotePad,
it will show the contents of the include file.

Hope that is more clear.
 
S

Steve Easton

Included content is "included" at the time the page containing the include
is saved.
Additionally, if you open and edit an include page, such as footer.htm, the
instant you save the updated footer.htm
all pages that contain it are updated to contain the new info.
Include pages are a "Design time include," not a "Server side include."

So, what you're seeing is normal operation of an include page and or page
that contains it.

hth


--
Steve Easton
MS MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
E

Effingham Hoofnickel

Thanks Steve,

I didn't realize that. It must have been different on FP98 as I've not
had the problem 'til FP2002. So apparently I should replace the FrontPage
includes with SSI includes ... but then the FrontPage editor won't know what
to do with them them. Oh well, I guess that doesn't matter. Thanks abunch
for helping me work it through, and my apologies for not being more succinct
in the exposition of my quandary.<grin>

Take care
 
S

Steve Easton

Thanks for the response.
I just took a look at an old FP98 web using notepad, and the included
content was "included" in the pages I checked.
Which in the grand scheme of things doesn't mean that much.
;-)

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 

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