You are here: how to get relative links to work in a include file. « HTML « IT news, forums, messages
how to get relative links to work in a include file.

Posted by diablo on 06/25/05 20:35

hi

all my pages have a menu of links on the left side.

i want to use a include file <!--#include file="" --> to hold the menu but i
am having a problem

here is my folder structure

foldA
---foldb
------fb.asp

inc
---links.asp

page1.asp


now in page1.asp i include the links.asp file.

in links.asp there is a link like so

<a href="../foldA/foldAA/fb.asp">foldB</a>

now when i load page1.asp and click the link i get a file not found because
it is looking for the file at a place relative to page1.asp not to
links.asp.

is there a way i can do this? or do i need to put in the whole url for each
link in my links page?

thanks

D

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация