Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE vs Firefox problem.

Status
Not open for further replies.

theniteowl

Programmer
May 24, 2005
1,975
US
Hi Guys,
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>
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:
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.
 
Well, that might be the answer but it's going to take a lot of rework to even get to where I can try it out.

Funny that it partially works. The href links all load fine as does other images on the page, just not the two images set as backgrounds in table cells.

I will have to do some testing and see if there is a way I can work the call into the head before any includes if I can do it without screwing up the PHP scripts.

Thanks.


At my age I still learn something new every day, but I forget two others.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top