FP 2002 'fixing' code. Why?

  • Thread starter Thread starter darrel
  • Start date Start date
D

darrel

Here's an odd problem.

We have a few people in our org that want to continue to use FP for a while
while we slowly build our own CMS.

Right now, we use ASP template pages that include external files to bring in
the content. These external files are just simple HTML 'snippets' that
contain a few H* tags, Paragraphs and maybe a list or two. We want people to
be able to open these up and edit content.

The problem is that FP 2002 seems to sometimes want to put back in the
'missing' HTML, HEAD and BODY tags. What's odd is that my co-workers FP 2002
does that, but my newly installed FP2002 doesn't. Is there maybe a setting
that controls this somewhere?

-Darrel
 
In my experience, FrontPage always puts in <html> and
</html> tags, <head> and </head> tags, and so forth.

I think your ASP code will need to find the <body> and
</body> tags, and only insert what's between them.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
|| Microsoft FrontPage Version 2002 Inside Out
|| Web Database Development Step by Step .NET Edition
|| Troubleshooting Microsoft FrontPage 2002
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
In my experience said:
</html> tags, <head> and </head> tags, and so forth.
Crap.

I think your ASP code will need to find the <body> and
</body> tags, and only insert what's between them.

Ugh.

Thanks for the info.

Again, though, My copy of FP2002 seems to 'obey' the page ant *not* put in
the tags. Not sure why though.

-Darrel
 
I've got a similar problem on an asp page with a frameset. I can't seem to
make FrontPage stop giving the frames default targets.
do you know a way around that swami? ;-)
 
If you have created your frameset page and set default targets, FP will add them (base target tags) to all your pages you create in
the frameset
- create your framed pages outside of the frameset
- or in your frameset properties clear the default targets
--




| I've got a similar problem on an asp page with a frameset. I can't seem to
| make FrontPage stop giving the frames default targets.
| do you know a way around that swami? ;-)
|
| | > In my experience, FrontPage always puts in <html> and
| > </html> tags, <head> and </head> tags, and so forth.
| >
| > I think your ASP code will need to find the <body> and
| > </body> tags, and only insert what's between them.
| >
| > Jim Buyens
| > Microsoft FrontPage MVP
| > http://www.interlacken.com
| > Author of:
| > *----------------------------------------------------
| > |\---------------------------------------------------
| > || Microsoft Office FrontPage 2003 Inside Out
| > || Microsoft FrontPage Version 2002 Inside Out
| > || Web Database Development Step by Step .NET Edition
| > || Troubleshooting Microsoft FrontPage 2002
| > || Faster Smarter Beginning Programming
| > || (All from Microsoft Press)
| > |/---------------------------------------------------
| > *----------------------------------------------------
| >
| >
| >
| >
| >
| > >-----Original Message-----
| > >Here's an odd problem.
| > >
| > >We have a few people in our org that want to continue to
| > use FP for a while
| > >while we slowly build our own CMS.
| > >
| > >Right now, we use ASP template pages that include
| > external files to bring in
| > >the content. These external files are just simple
| > HTML 'snippets' that
| > >contain a few H* tags, Paragraphs and maybe a list or
| > two. We want people to
| > >be able to open these up and edit content.
| > >
| > >The problem is that FP 2002 seems to sometimes want to
| > put back in the
| > >'missing' HTML, HEAD and BODY tags. What's odd is that
| > my co-workers FP 2002
| > >does that, but my newly installed FP2002 doesn't. Is
| > there maybe a setting
| > >that controls this somewhere?
| > >
| > >-Darrel
| > >
| > >
| > >.
| > >
|
|
 
I've removed the frameset targets in "code view" but upon saving the page
they reappear.

when you say clear the default targets do you mean through the "normal
view"/ right click/ frame properties method?

Stefan B Rusynko said:
If you have created your frameset page and set default targets, FP will
add them (base target tags) to all your pages you create in
 
Yes
In your frameset - select a Frame for Frame Properties and in there select Frames pages button

--




| I've removed the frameset targets in "code view" but upon saving the page
| they reappear.
|
| when you say clear the default targets do you mean through the "normal
| view"/ right click/ frame properties method?
|
| | > If you have created your frameset page and set default targets, FP will
| add them (base target tags) to all your pages you create in
| > the frameset
| > - create your framed pages outside of the frameset
| > - or in your frameset properties clear the default targets
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| | > | I've got a similar problem on an asp page with a frameset. I can't seem
| to
| > | make FrontPage stop giving the frames default targets.
| > | do you know a way around that swami? ;-)
| > |
| > | | > | > In my experience, FrontPage always puts in <html> and
| > | > </html> tags, <head> and </head> tags, and so forth.
| > | >
| > | > I think your ASP code will need to find the <body> and
| > | > </body> tags, and only insert what's between them.
| > | >
| > | > Jim Buyens
| > | > Microsoft FrontPage MVP
| > | > http://www.interlacken.com
| > | > Author of:
| > | > *----------------------------------------------------
| > | > |\---------------------------------------------------
| > | > || Microsoft Office FrontPage 2003 Inside Out
| > | > || Microsoft FrontPage Version 2002 Inside Out
| > | > || Web Database Development Step by Step .NET Edition
| > | > || Troubleshooting Microsoft FrontPage 2002
| > | > || Faster Smarter Beginning Programming
| > | > || (All from Microsoft Press)
| > | > |/---------------------------------------------------
| > | > *----------------------------------------------------
| > | >
| > | >
| > | >
| > | >
| > | >
| > | > >-----Original Message-----
| > | > >Here's an odd problem.
| > | > >
| > | > >We have a few people in our org that want to continue to
| > | > use FP for a while
| > | > >while we slowly build our own CMS.
| > | > >
| > | > >Right now, we use ASP template pages that include
| > | > external files to bring in
| > | > >the content. These external files are just simple
| > | > HTML 'snippets' that
| > | > >contain a few H* tags, Paragraphs and maybe a list or
| > | > two. We want people to
| > | > >be able to open these up and edit content.
| > | > >
| > | > >The problem is that FP 2002 seems to sometimes want to
| > | > put back in the
| > | > >'missing' HTML, HEAD and BODY tags. What's odd is that
| > | > my co-workers FP 2002
| > | > >does that, but my newly installed FP2002 doesn't. Is
| > | > there maybe a setting
| > | > >that controls this somewhere?
| > | > >
| > | > >-Darrel
| > | > >
| > | > >
| > | > >.
| > | > >
| > |
| > |
| >
| >
|
|
 
next time. I just opened the page with notepad and did what I needed. I
figure if I don't open with FrontPage again it'll leave it alone.
it's odd though, it's the first time that FrontPage has ever changed
something I did in html view.
Thanks Stefan

Stefan B Rusynko said:
Yes
In your frameset - select a Frame for Frame Properties and in there select Frames pages button

--




| I've removed the frameset targets in "code view" but upon saving the page
| they reappear.
|
| when you say clear the default targets do you mean through the "normal
| view"/ right click/ frame properties method?
|
| | > If you have created your frameset page and set default targets, FP will
| add them (base target tags) to all your pages you create in
| > the frameset
| > - create your framed pages outside of the frameset
| > - or in your frameset properties clear the default targets
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| | > | I've got a similar problem on an asp page with a frameset. I can't seem
| to
| > | make FrontPage stop giving the frames default targets.
| > | do you know a way around that swami? ;-)
| > |
| > | | > | > In my experience, FrontPage always puts in <html> and
| > | > </html> tags, <head> and </head> tags, and so forth.
| > | >
| > | > I think your ASP code will need to find the <body> and
| > | > </body> tags, and only insert what's between them.
| > | >
| > | > Jim Buyens
| > | > Microsoft FrontPage MVP
| > | > http://www.interlacken.com
| > | > Author of:
| > | > *----------------------------------------------------
| > | > |\---------------------------------------------------
| > | > || Microsoft Office FrontPage 2003 Inside Out
| > | > || Microsoft FrontPage Version 2002 Inside Out
| > | > || Web Database Development Step by Step .NET Edition
| > | > || Troubleshooting Microsoft FrontPage 2002
| > | > || Faster Smarter Beginning Programming
| > | > || (All from Microsoft Press)
| > | > |/---------------------------------------------------
| > | > *----------------------------------------------------
| > | >
| > | >
| > | >
| > | >
| > | >
| > | > >-----Original Message-----
| > | > >Here's an odd problem.
| > | > >
| > | > >We have a few people in our org that want to continue to
| > | > use FP for a while
| > | > >while we slowly build our own CMS.
| > | > >
| > | > >Right now, we use ASP template pages that include
| > | > external files to bring in
| > | > >the content. These external files are just simple
| > | > HTML 'snippets' that
| > | > >contain a few H* tags, Paragraphs and maybe a list or
| > | > two. We want people to
| > | > >be able to open these up and edit content.
| > | > >
| > | > >The problem is that FP 2002 seems to sometimes want to
| > | > put back in the
| > | > >'missing' HTML, HEAD and BODY tags. What's odd is that
| > | > my co-workers FP 2002
| > | > >does that, but my newly installed FP2002 doesn't. Is
| > | > there maybe a setting
| > | > >that controls this somewhere?
| > | > >
| > | > >-Darrel
| > | > >
| > | > >
| > | > >.
| > | > >
| > |
| > |
| >
| >
|
|
 
Back
Top