theniteowl
Programmer
Hi Guys,
I am having problems with paths to images on a site I designed for a local school.
This line:
Works in IE but fails in Firefox.
The folder the page loads in is one level below the root but the image is one that is used on every page of the web site and so is in the images folder off the root.
Is there any reason the path using ../ would be a problem in Firefox?
There is another more complex possibility if the above is not the issue.
This site is a template system I designed that redirects all requests through my template so the page is standardized and the requested page is loaded into a content section. The template loads from the root though content pages are in their own subfolders. To keep relative paths working I issue this command from my PHP script so that the current working path is updated to the requested folder:
Is the base tag somehow incompatible? I do not think it is.
The very next line executes the include statement to load the content page. That content page has the image link and all other paths within that page work relative to that sub folder such as a link to a file in the same folder or to ones in sub folders.
Ideas?
You can see the site at:
It loads fine in IE but the top and bottom graphics around the content area are missing in Firefox.
At my age I still learn something new every day, but I forget two others.
I am having problems with paths to images on a site I designed for a local school.
This line:
Code:
<td width="770" height="6" background="../images/contenttop.gif" colspan="3"></td>
The folder the page loads in is one level below the root but the image is one that is used on every page of the web site and so is in the images folder off the root.
Is there any reason the path using ../ would be a problem in Firefox?
There is another more complex possibility if the above is not the issue.
This site is a template system I designed that redirects all requests through my template so the page is standardized and the requested page is loaded into a content section. The template loads from the root though content pages are in their own subfolders. To keep relative paths working I issue this command from my PHP script so that the current working path is updated to the requested folder:
Code:
echo '<base href = "'.$mydomain.$folderpath.'/'.'">';
Is the base tag somehow incompatible? I do not think it is.
The very next line executes the include statement to load the content page. That content page has the image link and all other paths within that page work relative to that sub folder such as a link to a file in the same folder or to ones in sub folders.
Ideas?
You can see the site at:
It loads fine in IE but the top and bottom graphics around the content area are missing in Firefox.
At my age I still learn something new every day, but I forget two others.