How to use #include in a web page
-
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
-
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
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
-
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
-
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
what preview? and what web server are you using?
Waleed Eissa Software Developer Sydney
-
what preview? and what web server are you using?
Waleed Eissa Software Developer Sydney
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
-
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
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