preventing <head> section in includes ?

  • Thread starter Thread starter Jimmy
  • Start date Start date
J

Jimmy

FP2000 - I'm trying to create a "footer" for inclusion on all
my pages. All I really want in there is a table. The main page will
provide the <html> <head> <body> tags. But, every time I save,
FP puts <head> tags into my simple footer page.

Is there some way to prevent this ?
 
If FP Include you must have normal HTML page tags or FP will not be able to
include the content.

If SSI, make sure under Tools | Page Options | HTML Source, you have FP set
to not modify it.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
The include web-bot only "includes"
the content contained between the body tags,
although an include page will still
have the head tags they are ignored
 
If FP Include you must have normal HTML page tags or FP will not be able to
include the content.

Hmmm...what could you possibly use the include feature for then ?
You can't have a "head" section in the body of a web page (and still
comply with any HTML spec, anyway).
If SSI, make sure under Tools | Page Options | HTML Source, you have FP set
to not modify it.

I see that feature, thanks. I tried it an it does preserve the HTML as
coded - but it also disables the include feature, as you noted.
 
FP Includes are (and shared borders) are design time tools which parse the included page and Only include the content inside of the
<BODY> tags

--




| On Fri, 19 Dec 2003 11:27:07 -0500, "Thomas A. Rowe" <[email protected]>
| wrote:
|
| >If FP Include you must have normal HTML page tags or FP will not be able to
| >include the content.
|
| Hmmm...what could you possibly use the include feature for then ?
| You can't have a "head" section in the body of a web page (and still
| comply with any HTML spec, anyway).
|
| >If SSI, make sure under Tools | Page Options | HTML Source, you have FP set
| >to not modify it.
|
| I see that feature, thanks. I tried it an it does preserve the HTML as
| coded - but it also disables the include feature, as you noted.
|
|
 
Your footer page will have this. It's normal. However, when it's used as
an include, it will only pull what's in the body, not the head tags.

<voice ="Rosanne Rosanna Dana">
Ooooohhhh, that's different. Nevermind.
</voice>

Is there some way to properly do an include into a "head" section ?
I'd like to include some items that will be repeated on each page such
as JS code for rollovers and the like... Is there an official
way to do this in FP ?

I "included" it into the body section and got this:

<!--webbot bot="Include" u-include="_private/rolloverJS.htm"
tag="BODY" -->

Then I moved it to the head section and hacked the "tag" item:

<!--webbot bot="Include" u-include="_private/rolloverJS.htm"
tag="HEAD" -->

Is that the only way to do it ? Is that OK ?

Thanks again,
 
FP Includes are (and shared borders) are design time tools which parse the included page and Only include the content inside of the
<BODY> tags

Yeah... thanks, I figured that out after I read Tom's post but I had
already posted my followup question.
 
If you modify it as indicated, the tag will stay in the head, but the
content of the include will also appear on your page.

Also this would defeat the purpose of using the FP Include, as you would
have to manual make that change in every single page.

Single it seem that you are trying to accomplish this as a means of place
the JavaScript function in the head section of your pages, have you tried
inserting the JavaScript after the <body> of the page to be included, and
see if the script will run or you could always create a external .js file.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
Back
Top