Pseudo Include Files

D

Dave

Is there any way to include a file in a frontpage web on .htm(l) other
than using the standard <!--#inclue file=""--> and setting .htm(l) to
process as a .shtm(l)

I have about 10-15 lines of JS / HTML that I would like to leave in one
file and have every page inside of the web include it.
 
S

Stefan B Rusynko

Only as a design time tool using FP Include page or shared borders (for content inside of the body tags)




| Is there any way to include a file in a frontpage web on .htm(l) other
| than using the standard <!--#inclue file=""--> and setting .htm(l) to
| process as a .shtm(l)
|
| I have about 10-15 lines of JS / HTML that I would like to leave in one
| file and have every page inside of the web include it.
 
M

MD Websunlimited

Hi Dave,

If it is JS then use the src attribute of the script tag to load the file. If the file includes HTML then have the JS write it out.
 
D

Dave

Mornin'
I thought about that, but then what happens with clients who don't
support JS? :)
 
S

Steve Easton

If people have their browsers set to not support javascript, it doesn't matter how the javascript is
used it won't work, whether it is in the page itself or called from an external file.

Personally, I would consider peoples browsers not supporting javascript as being rare.


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

Stefan B Rusynko

Open your FP Web/Site
Create a page w/ your html and script (must be inside of the body tags)
Open another page and use Insert Web Components - Included Content - Page




| Could you give me an example?
|
| Stefan B Rusynko wrote:
|
| > Only as a design time tool using FP Include page or shared borders (for content inside of the body tags)
| >
 
W

Wally S

If there is something you would like to have on every page of the web site,
then the easiest thing would be to make a template with what you want
included, and make all new pages from a copy of the template.

Wally S
 
Top