FrontPage 2000 Removes all text between <Body> Tag

T

Tony_VBACoder

With FrontPage 2000, I have created a Web Page using Notepad that works
perfect, but when I load it in Front Page, all the text between the <BODY>
Tag is gone, and for some reason FP saves the page without me choosing to.

Has anyone seen this?
 
J

Jim Cheshire

Tony_VBACoder said:
With FrontPage 2000, I have created a Web Page using Notepad that
works perfect, but when I load it in Front Page, all the text between
the <BODY> Tag is gone, and for some reason FP saves the page without
me choosing to.

Has anyone seen this?


Can you post this code?

--
Jim Cheshire
JIMCO
http://www.jimcoaddins.com
Free add-ins for FrontPage

Author of Special Edition
Using Microsoft Office FrontPage 2003
 
T

Tony_VBACoder

Here is a slimed down version of the Web Page where if I launch it directly
in IE 6, the page works fine. However, if I load the page in FrontPage, it
strips out all the text, and I've included how the file looks when you click
on the HTML tab in Front Page. You will need to also use the following text
file as I am using the Microsoft TDC control to display the data. A few
sample lines are below, which you should save to a text file and name it
"Scores.txt". I have tried to separate each section by a row astericks.

***** Save this to a Text file named Scores.txt *********
Week;Winner;WinnerScore;Loser;LoserScore;WinnerURL;LoserURL
1;Grocery Store Cart Wranglers;85;Silverback Gluteus
Maximus;36;Wranglers.htm;Silverback.htm
1;Mutated Ill-Tempered Seabass;82;Sin City Faith
Healers;65;MutatedSeabass.htm;SinCity.htm
2;Mean Machines;82;Mutated Ill-Tempered
Seabass;39;MeanMachines.htm;MutatedSeabass.htm
2;Grocery Store Cart Wranglers;73;Thibodaux Cajun
FooseBallers;29;Wranglers.htm;ThibodauxFooseballers.htm
3;Topeka Truants;74;Mutated Ill-Tempered
Seabass;23;TopekaTruants.htm;MutatedSeabass.htm
3;Joliet Jail Birds;70;Macanudo Monkey Bar
Masters;25;JailBirds.htm;MacMonks.htm

******************************

***** Here is the HTML before it is loaded into Front Page ******
<html>

<head>
<title>Home Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">

<style>
.break { page-break-before: always; }

.tdFF
{
font-family: Arial; font-size: 9pt;text-decoration:none;
height:17;border-width:1px;border-style:solid;}
.tdFFL
{
font-family: Arial; font-size: 9pt;height:17;
border-width:1px;border-style:solid;}
.TDHdr
{
font-family: Arial;font-size: 10pt;cursor: default;
background:#C0C0C0;border-width:1px;border-style:solid;
border-top-color:silver;border-left-color:silver;
border-bottom-color:silver;border-right-color:silver;}
.TDFoot
{
font-family: Arial;font-size: 10pt;cursor: default;
background: #C0C0C0;border-width:1px;border-style:solid;
border-top-color:white;border-left-color:white;
border-bottom-color:gray;border-right-color:gray;}
.Filters
{
font-family: Arial; font-size: 9pt;height:17;
width:150;border-width:1px;border-style:solid;}
.txtFilters
{
font-family: Arial; font-size: 9pt;
height:17;width:63;border-width:1px;border-style:solid;}
</style>

<SCRIPT FOR=window EVENT=onload>
tdcScores.DataURL = "Files/Scores.txt";
tdcScores.object.Filter = ('Week=0');
tdcScores.Reset();
</SCRIPT>

<SCRIPT FOR=cboWeek EVENT=onchange>
cValue = this.options[this.selectedIndex].value;
tdcScores.object.Filter = (cValue == 'All' ? 'Week>0' : 'Week=' + cValue);
tdcScores.Reset();
</SCRIPT>

<meta name="Microsoft Theme" content="ac_nfl 111, default">
<meta name="Microsoft Border" content="t">
</head>

<OBJECT id="tdcScores" CLASSID="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83">
<PARAM NAME="DataURL" VALUE="">
<PARAM NAME="UseHeader" VALUE="True">
<PARAM NAME="FieldDelim" VALUE=";">
</OBJECT>


<body background="_themes/ac_nfl/backgrnd.gif" bgcolor="#F3FFEC"
text="#004040" link="#008080" vlink="#008000"
alink="#00CC33"><!--msnavigation-->

<table border="0" cellpadding="0" cellspacing="0"
width="100%"><tr><td><!--mstheme--><font face="arial, Arial, Helvetica">

<p align="center">

<p><font size="3" face="Arial"><strong>2004 - 2005 Season Schedule and
Scores</strong></font>
</TABLE>

<table>
<tr>
<td class="tdFF">Week:</td>
<td class="tdFF">
<select name="cboWeek" Class="Filters">
<OPTION VALUE=0>
<OPTION VALUE=All>ALL
<OPTION VALUE=1>1
<OPTION VALUE=2>2
</select>
</td>
</tr>
</TABLE>

<!--mstheme-->

<table id="tblData" datasrc="#tdcScores" Width="60%" Cellpadding="0"
cellspacing="0">
<thead>
<tr STYLE="font-weight:bold" bgcolor="silver">
<td width="10%" nowrap ID="TD-Week" align="center"><div
ID="Week" Class="TDHdr">Week</div></td>
<td width="35%" nowrap ID="TD-Winner" align="center"><div
ID="Winner" Class="TDHdr">Winner</div></td>
<td width="10%" nowrap ID="TD-WinnerPts" align="center"><div
ID="WinnerTotalPts" Class="TDHdr">Pts</div></td>
<td width="35%" nowrap ID="TD-Loser" align="center"><div
ID="Loser" Class="TDHdr">Loser</div></td>
<td width="10%" nowrap ID="TD-LoserPts" align="center"><div
ID="LoserTotalPts" Class="TDHdr">Pts</div></td>
</tr>
</thead>

<tbody>
<tr valign="top">
<td class="tdFFL"><div datafld="Week"></div></a></td>
<td class="tdFFL"><a datafld="WinnerURL"><div
datafld="Winner"></div></td>
<td class="tdFFL"><div datafld="WinnerScore"></div></td>
<td class="tdFFL"><a datafld="LoserURL"><div
datafld="Loser"></div></td>
<td class="tdFFL"><div datafld="LoserScore"></div></td>
</tr>
</tbody>
</table>


</body>

</html>

**********************************************

*** Now this is what it will look like when I load it in Front Page ****

<html>

<head>
<title>Home Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">

<style>
.break { page-break-before: always; }

.tdFF
{
font-family: Arial; font-size: 9pt;text-decoration:none;
height:17;border-width:1px;border-style:solid;}
.tdFFL
{
font-family: Arial; font-size: 9pt;height:17;
border-width:1px;border-style:solid;}
.TDHdr
{
font-family: Arial;font-size: 10pt;cursor: default;
background:#C0C0C0;border-width:1px;border-style:solid;
border-top-color:silver;border-left-color:silver;
border-bottom-color:silver;border-right-color:silver;}
.TDFoot
{
font-family: Arial;font-size: 10pt;cursor: default;
background: #C0C0C0;border-width:1px;border-style:solid;
border-top-color:white;border-left-color:white;
border-bottom-color:gray;border-right-color:gray;}
.Filters
{
font-family: Arial; font-size: 9pt;height:17;
width:150;border-width:1px;border-style:solid;}
.txtFilters
{
font-family: Arial; font-size: 9pt;
height:17;width:63;border-width:1px;border-style:solid;}
</style>

<SCRIPT FOR=window EVENT=onload>
tdcScores.DataURL = "Files/Scores.txt";
tdcScores.object.Filter = ('Week=0');
tdcScores.Reset();
</SCRIPT>

<SCRIPT FOR=cboWeek EVENT=onchange>
cValue = this.options[this.selectedIndex].value;
tdcScores.object.Filter = (cValue == 'All' ? 'Week>0' : 'Week=' + cValue);
tdcScores.Reset();
</SCRIPT>

<meta name="Microsoft Theme" content="ac_nfl 111, default">
<meta name="Microsoft Border" content="t">
</head>

<OBJECT id="tdcScores" CLASSID="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83">
<PARAM NAME="DataURL" VALUE="">
<PARAM NAME="UseHeader" VALUE="True">
<PARAM NAME="FieldDelim" VALUE=";">
</OBJECT>


<body>

***************************************************
 
J

Jim Cheshire \(JIMCO\)

Tony,

When I open that page in FrontPage 2003, it looks fine. However, it is not
valid HTML. The <object> tag must be within the <head> or the <body>. In
your page, it is outside of both.

FrontPage will sometimes change invalid HTML and page content may be lost.
To ensure this doesn't happen, always use valid HTML.

--
Jim Cheshire
JIMCO
http://www.jimcoaddins.com
Free add-ins for FrontPage

Author of Special Edition
Using Microsoft Office FrontPage 2003
 
T

Tony_VBACoder

Jim, thank you for the reply. By the way...I am using FrontPage 2000.
However, if I move the <object> tag within the <Head> tag, I still get the
same result. This time, however, my entire 2nd table is gone and I am left
with only the following:

<body><table>
<tr>
<td class="tdFF">Week:</td>
<td class="tdFF">
<select name="cboWeek" Class="Filters">
<OPTION VALUE=0>
<OPTION VALUE=All>ALL
<OPTION VALUE=1>1
<OPTION VALUE=2>2
</select>
</td>
</tr>
</TABLE> </body>
 
J

Jim Cheshire \(JIMCO\)

Tony_VBACoder said:
Jim, thank you for the reply. By the way...I am using FrontPage 2000.
However, if I move the <object> tag within the <Head> tag, I still
get the same result. This time, however, my entire 2nd table is gone
and I am left with only the following:

FrontPage 2000 was pretty bad about changing some code. FrontPage 2003 is
much better at preserving HTML. The fact that I had no problems with you
original page is good evidence of that.

--
Jim Cheshire
JIMCO
http://www.jimcoaddins.com
Free add-ins for FrontPage

Author of Special Edition
Using Microsoft Office FrontPage 2003
 
T

Tony_VBACoder

Plus, you mentioned that my initial HTML page is invalid, yet I was able to
get it to load and work perfectly fine in IE 6.

Jim, as I mentioned, I moved my <object> tag into the proper spot, and yet
FP2000 still removes my text. Any thoughts on why this would occur?

I am wondering if anyone else has experienced this with FP2000?
 
J

Jim Cheshire \(JIMCO\)

Tony_VBACoder said:
Plus, you mentioned that my initial HTML page is invalid, yet I was
able to get it to load and work perfectly fine in IE 6.

Jim, as I mentioned, I moved my <object> tag into the proper spot,
and yet FP2000 still removes my text. Any thoughts on why this would
occur?

I am wondering if anyone else has experienced this with FP2000?

Hi Tony,

Yes, your initial HTML page is invalid. Look up the <object> tag in the
HTML spec. You will see that it is only valid within the <head> or the
<body>. You had it outside of both, and that is invalid HTML.

As for why FrontPage 2000 is modifying your code, no one here will be able
to answer that except to say that FrontPage 2000 was pretty bad at modifying
code. My recommendation to you would be to upgrade to FrontPage 2003.

--
Jim Cheshire
JIMCO
http://www.jimcoaddins.com
Free add-ins for FrontPage

Author of Special Edition
Using Microsoft Office FrontPage 2003
 

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