This has been driving me nuts! X-) I have tried every way I can think of to define #Application.RootPath# in such a way that it always works. Here are me path definitions:
Here is a clip from a main page that works(image shows):
If I click on this link to go down to the next level, the image doesn't show. Here it is on the next page:
If I change "#Application.ImagePath#" to "../#Application.ImagePath#", it works. Yes, my images are within CFOUTPUT tags. Using #Application.RootPath# in my links doesn't work, either, once you go below the first level.
Isn't there some way to define these paths in such a way that they will always work no matter how many levels you have? What do the rest of you do? Calista :-X
Jedi Knight,
Champion of the Force
Code:
<!--- This is the root path for test --->
<CFSET APPLICATION.ROOTPATH="../../../CFDOCS/NewIntranet/">
<CFSET APPLICATION.COMMONPATH="#Application.RootPath#CommonFiles/">
<CFSET APPLICATION.IMAGEPATH="#Application.CommonPath#Images/">
<CFSET APPLICATION.LOGOPATH="#Application.ImagePath#Logos/">
Code:
<TR>
<TD><A HREF="Common/CommonIndex.cfm"><IMG SRC="#Application.ImagePath#Common.gif" WIDTH="120" HEIGHT="41" BORDER="0" ALT=""></A></TD>
</TR>
Code:
<TR>
<TD><IMG SRC="#Application.ImagePath#Common.gif" WIDTH="120" HEIGHT="41" BORDER="0" ALT=""></TD>
<TD><SPAN CLASS="ExtraLarge">Product Information</SPAN></TD>
</TR>
Isn't there some way to define these paths in such a way that they will always work no matter how many levels you have? What do the rest of you do? Calista :-X
Jedi Knight,
Champion of the Force