118 users online (1 members and 117 guests)  

  Results 1 to 2 of 2


  1. How to upload html file to publc_html    Forum: HTML Forum
    Replies: 2
  2. html file upload hel;p    Forum: HTML Forum
    Replies: 0
  3. mov file into the html    Forum: HTML Forum
    Replies: 10
  4. include file    Forum: HTML Forum
    Replies: 2
  1. #1
    swornavidhya_m's Avatar
    New User

    Join Date
    Jul 2010

    Unhappy Include an HTML File into an another html file.

    I've created a seperate html files for navigation, content and footer. I want to club those files. All the navigation, content, footer files resides in the same directory where the index.html file resides. I want to include the above mentioned html files inside the index.html. I have tried using the following in index.html file
    <!--#include virtual="topbanner.html" -->

    I also tried using the asp code which also fails. I tried with asp by changing all the html file extensions as .asp. Then i tried to place the following asp code in index.asp file as
    <!--#include file="topbanner.asp" -->

    Kindly solve my problem. This is an urgent thing to do for me.

    M.Sworna Vidhya

  2. #2
    webdevpro's Avatar
    New User

    Join Date
    Nov 2010

    Re: Include an HTML File into an another html file.

    Some web servers will only allow those server-side includes when the document has an extension .shtml
    My advice would be to rename your index.html to index.shtml, upload it and try browsing to it to see if the includes works.
    If it doesn't then, you need to contact your web server administration to allow the .shtml extension to be parsed.