Getting INCLUDE file tag in HTML to work @ inmotionhosting

Avatar
  • Answered
I am moving several sites that were originally built using ASP pages on a machine that was running Windows Server 2003. I have many instances where we use a tag like this: That means, just to show this example, that this page: http://www.martintate.com/inc_header_home.asp is supposed to show up on this page: http://www.martintate.com/home.asp As you can see, both pages work fine on @ inmotion hosting, but they do not display together like they did on my old server. Help! I have a lot of pages to fix!!
Avatar
Scott
Hello, Sorry to hear you are having issues with getting the .asp includes to work on your site. You will likely need to add some javascript to include the header file. This assumes you have JQuesry installed as well. It would look something like the code below:
<html> 
  <head>
    <script src="jquery.js"></script>
    <script> 
    $(function(){
      $("#includedContent").load("inc_header_home.html"); 
    });
    </script>
  </head>

  <body>
     <div id="includedContent"></div>
  </body> 
</html>
Do remember to change everything to html as you've no doubt discovered our servers do not support asp files. Kindest Regards, Scott M