Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

Making duplicate code generic

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #21  
Old Jul 15th, 2006, 11:30
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Making duplicate code generic

Looks like a case sensitivity issue.
Code: Select all
     <TABLE align="center" width="100%">
      <tr>
      <td></td>
        <td width="11%">&nbsp;</td>
        <td width="39%"><!--#include file="./Common/dropdown.shtml" --></td>
      </tr>
    </TABLE>
In this code you the file path as ./Common with uppercase 'C' but in the path you gave above the code snippit, you had ./common with a lowercase 'c'.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #22  
Old Jul 15th, 2006, 11:35
Junior Member
Join Date: Jun 2006
Location: England
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
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" -->
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #23  
Old Jul 15th, 2006, 12:04
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Making duplicate code generic

Let me see your file structure where the various files are.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #24  
Old Jul 15th, 2006, 16:58
Junior Member
Join Date: Jun 2006
Location: England
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #25  
Old Jul 15th, 2006, 19:02
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #26  
Old Jul 15th, 2006, 19:29
Junior Member
Join Date: Jun 2006
Location: England
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #27  
Old Jul 15th, 2006, 21:20
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #28  
Old Jul 15th, 2006, 21:27
Junior Member
Join Date: Jun 2006
Location: England
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
making, duplicate, code, generic

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 19:03.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8