Forum Moderators: open

Message Too Old, No Replies

Alternative to "Include Page" in FrontPage

         

puckparches

10:20 pm on Nov 12, 2008 (gmt 0)

10+ Year Member Top Contributors Of The Month



FrontPage has a feature to include a page into another page, and I used that feature in my pages.

Question: What is the alternative to FrontPage's "Include a page"?

I now how to do it with php but the windows server does not supports php.

I also try using javascript, which works well if is just a simple html code. Just convert the html page to .js and add "document.writeln(' ');" at the beginning of each line, then call the script from the HTML pages

Question 2: If the only solution is using a .js file How can I include other scrips inside that .js page? (for example, google analytics)

Thanks

bill

2:45 am on Nov 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



PHP includes are a good alternative. You can install PHP on a Windows server. I've been running PHP on mine for many years.

puckparches

3:07 am on Nov 13, 2008 (gmt 0)

10+ Year Member Top Contributors Of The Month



PHP includes are a good alternative. You can install PHP on a Windows server. I've been running PHP on mine for many years.

thank you for your response, unfortunately I don't have control of my servers since I'm using a shared hosting.

bill

4:03 am on Nov 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Then you might want to look at Server Side Includes [google.com].

tedster

5:13 am on Nov 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Also note that a lot of shared hosting today does offer PHP - so check with your hosting service before you rule that out.

puckparches

5:32 am on Nov 13, 2008 (gmt 0)

10+ Year Member Top Contributors Of The Month



Then you might want to look at Server Side Includes
Thanks bill, great suggestion. I did actually search before posting, but most of the results suggested to use <!--#include .......>, and I try that and it din't work, I really couldn't find the soultions to my question. Do you have one?

Also note that a lot of shared hosting today does offer PHP - so check with your hosting service before you rule that out.
Thank you tedster. I did call them, since the hosting service of one of my sites do offer PHP and FrontPage extension in the same server. May be is time to change all my sites to one hosting.

In case some one have a suggestion to my questions, here are the questions again:

Question: What is the alternative to FrontPage's "Include a page"?

Question 2: If the only solution is using a .js file How can I include other scrips inside that .js page? (for example, google analytics)

tedster

9:47 am on Nov 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



On #2, you don't need to combine all your Javascript into on script. For instance, you can still have the Google Analytics code as a separate script right before the bottom of your source code.

pageoneresults

9:52 am on Nov 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Question: What is the alternative to FrontPage's "Include a page"?

If the pages are .asp, you can use virtual includes in place of FP includes, I do it all the time.

<!--#include virtual="/common/file.asp"-->

But, all pages using this method must also be .asp

You may want to upgrade your hosting plan so you can use php as I think that is going to be your best option moving forward.