Question
finding image with relative path
I don't know why this is throwing me, but it's been a long
day and I am probably not thinking clearly.
I am setting up a new simple site to use as an example for others. My Aplication.cfc file includes my header page in the OnRequestStart method. The Application.cfc file is in my root. Any .cfm page located in the root has no problem seeing the header and its images.
Ant page located in a subfolder below the root can't find any of the images on the header page. Any text on the header page is displayed correctly, but images aren't shown
--------------Application.cfc--------------------
<cfcomponent displayname="Application" output="true">
<cffunction name="onRequestStart" output="true" returntype="boolean">
<cfinclude template="../headfoot/wcfHeader.cfm">
<cfreturn true>
</cffunction>
</cfcomponent>
------------------------------------------------------
-------------wcfHeader.cfm--------------------
<body >
<img src="images/wsbanner400.jpg" width="400" height="95" alt="WCF banner"/><br />
Some header text.
</body>
------------------------------------------------------
I am setting up a new simple site to use as an example for others. My Aplication.cfc file includes my header page in the OnRequestStart method. The Application.cfc file is in my root. Any .cfm page located in the root has no problem seeing the header and its images.
Ant page located in a subfolder below the root can't find any of the images on the header page. Any text on the header page is displayed correctly, but images aren't shown
--------------Application.cfc--------------------
<cfcomponent displayname="Application" output="true">
<cffunction name="onRequestStart" output="true" returntype="boolean">
<cfinclude template="../headfoot/wcfHeader.cfm">
<cfreturn true>
</cffunction>
</cfcomponent>
------------------------------------------------------
-------------wcfHeader.cfm--------------------
<body >
<img src="images/wsbanner400.jpg" width="400" height="95" alt="WCF banner"/><br />
Some header text.
</body>
------------------------------------------------------
