This is a discussion on "Making duplicate code generic" within the Web Page Design section. This forum, and the thread "Making duplicate code generic are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Making duplicate code generic
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#21
|
|||
|
|||
|
Re: Making duplicate code generic
Looks like a case sensitivity issue.
|
|
#22
|
|||
|
|||
|
Re: Making duplicate code generic
Sorry Geoff, but the directory has an Uppercase 'C' for Common, just a typo.
So the call to the .shtml is correct in saying <!--#include file="./Common/dropdown.shtml" --> |
|
#23
|
|||
|
|||
|
Re: Making duplicate code generic
Let me see your file structure where the various files are. |
|
#24
|
|||
|
|||
|
Re: Making duplicate code generic
c:\Web Pages
main.htm <-- includes the page with the 'include' statement c:\Web Pages\Images c:\Web Pages\Js c:\Web Pages\Common <-- contains the dropdown.shtml |
|
#25
|
|||
|
|||
|
Re: Making duplicate code generic
Ok, think I see. The file structure you have shown is on your hard drive. Ergo, WIndows format '\' backslash in file path. In code you have '/' forward slash. Server unix et al format. |
|
#26
|
|||
|
|||
|
Re: Making duplicate code generic
The images and links all use the same - ie. forward slashes referenced in the code and they all work fine, im working off my hard drive at the moment as i have no domain as yet.
|
|
#27
|
|||
|
|||
|
Re: Making duplicate code generic
If you are working directly off your hard drive and not through a server, it won't work. SSI as the name implies is a server side technology. If you are just loading the pages into your browser directly and not via a server, even a local server, then it's no go. |
|
#28
|
|||
|
|||
|
Re: Making duplicate code generic
Ah,
I'll code all the pages with reference to the 'include' locally, and wait till I upload to the server, it should work? Thanks Geoff. Im learning all the time. |
![]() |
| Tags |
| making, duplicate, code, generic |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| duplicate content | dab42pat | Search Engine Optimization (SEO) | 25 | Aug 3rd, 2007 17:09 |
| Duplicate content | ScottR | Search Engine Optimization (SEO) | 6 | Jul 27th, 2007 14:36 |
| live search code and styleswitcher code | hebel | JavaScript Forum | 0 | May 12th, 2007 07:16 |
| Generic Window Usage | Rudie | JavaScript Forum | 1 | Jun 2nd, 2006 22:21 |
| Can somebody give me the code to hide the source code? | renren | JavaScript Forum | 7 | Mar 7th, 2006 13:27 |