Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. How to use #include in a web page

How to use #include in a web page

Scheduled Pinned Locked Moved Web Development
tutorial
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    prithaa
    wrote on last edited by
    #1

    hello, I want to include one page as a header for all my web pages.For which I have written the following code Untitled Document; ; ; ;

    The above code works fine with the page seen in the Preview in Browser but fails in the Internet Explorer browser. Regards, Pritha

    W 1 Reply Last reply
    0
    • P prithaa

      hello, I want to include one page as a header for all my web pages.For which I have written the following code Untitled Document; ; ; ;

      The above code works fine with the page seen in the Preview in Browser but fails in the Internet Explorer browser. Regards, Pritha

      W Offline
      W Offline
      Waleed Eissa
      wrote on last edited by
      #2

      The browser has nothing to do with the file being included or not, I think you have to leave a space between (did you notice the space after

      P 1 Reply Last reply
      0
      • W Waleed Eissa

        The browser has nothing to do with the file being included or not, I think you have to leave a space between (did you notice the space after

        P Offline
        P Offline
        prithaa
        wrote on last edited by
        #3

        Hello, Thanks for your answers. But with the space it doesn't work.I can see the include file in the preview but cannot see it in Internet Explorer. How can I make sure server side includes are enabled? Thanks Pritha

        W 1 Reply Last reply
        0
        • P prithaa

          Hello, Thanks for your answers. But with the space it doesn't work.I can see the include file in the preview but cannot see it in Internet Explorer. How can I make sure server side includes are enabled? Thanks Pritha

          W Offline
          W Offline
          Waleed Eissa
          wrote on last edited by
          #4

          what preview? and what web server are you using?

          Waleed Eissa Software Developer Sydney

          P 1 Reply Last reply
          0
          • W Waleed Eissa

            what preview? and what web server are you using?

            Waleed Eissa Software Developer Sydney

            P Offline
            P Offline
            prithaa
            wrote on last edited by
            #5

            Hello, Thanks for your reply I am using Dreamweaver to make the web page and I can see the included file when checked in the 'Preview in Browser'.but when I open the page in Internet Explorer I cannot see the include page. I don't know about the web server. Prithaa

            W 1 Reply Last reply
            0
            • P prithaa

              Hello, Thanks for your reply I am using Dreamweaver to make the web page and I can see the included file when checked in the 'Preview in Browser'.but when I open the page in Internet Explorer I cannot see the include page. I don't know about the web server. Prithaa

              W Offline
              W Offline
              Waleed Eissa
              wrote on last edited by
              #6

              Hi Prithaa, I don't use Dreamweaver very often so I don't know much about its features, it seems that it automatically includes the file for you in the page preview. I'll try to make this as simple as possible, basically you need to run your website on a web server in order to be able to include files, if you plan to have your website hosted on a shared web host then you shouldn't worry about this, it will be taken care of by the web server of the shared host. I don't know what operating system you are using but I will assume it's either Windows XP or Windows Vista, in either Windows XP or Visa you have a web server called IIS, you have to run your website on IIS in order to be able to view it in Internet Explorer. Hope this helps ...

              Waleed Eissa Software Developer Sydney

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups