Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Glenn_Stern #1
CF Include Problem
All,
I'm using CF inludes for my website, and they all have images in them. The
only way I can get the images to show up in the browser is by hardcoding the
entire path ([url]http://www.mysite.com/images[/url]....) in the image source code. In the
past I have used library items and DW always rewrote the code to resolve the
images paths - I expected this to be the case with the CF inclues as well.
Am I missing something? Thanks!
Glenn_Stern Guest
-
include problem
i have a page that INCLUDES another page but when the second page is included all the images are not showing. it is because the image url's are... -
problem with INCLUDE
Hi! I have a problem... I did a PHP Script for a counter... and I want the counter to be displayed on an another PHP page... So, I can... -
[PHP] Problem with include();
Hello, It's often said that includes should have relative paths instead of absolute paths. This ensures that your script still works when you move... -
Php Include Problem
I have a few php scripts which perform various database queries. Originally I had them all in the same directory which could be viewed through my... -
include virtual problem
i am using dreamweaver to create an asp page. I have the following code incorporated on the page. :- <!--#include virtual="/includes/meta.asp"... -
Dan Short - TMM #2
Re: CF Include Problem
Hi Glenn,
When you include a file, the *server* simply drops the contents of the
include into the calling page. I like to think of it as server-side
copy/paste :). The best way to get around this is to use root relative
paths. So if you had an image here:
[url]http://www.mysite.com/images/myimage.gif[/url]
You would set up your image inside an include like so:
<img src="/images/myimage.gif" />
Then, regardless of where you used the include, it would render correctly.
--
Daniel Short
ColdFusion Shopping Cart: [url]http://www.cartweaver.com/[/url]
Extensions from DWfaq: [url]http://www.dwfaq.com/store/[/url]
TMM DW Volunteer: [url]http://www.macromedia.com/go/team[/url]
Design: [url]http://www.web-shorts.com[/url]
DW training at Lynda.com: [url]http://dansshorts.com/lynda.cfm[/url]
"Glenn_Stern" <webforumsuser@macromedia.com> wrote in message
news:d4au98$7e5$1@forums.macromedia.com...> All,
>
> I'm using CF inludes for my website, and they all have images in them. The
> only way I can get the images to show up in the browser is by hardcoding
> the
> entire path ([url]http://www.mysite.com/images[/url]....) in the image source code.
> In the
> past I have used library items and DW always rewrote the code to resolve
> the
> images paths - I expected this to be the case with the CF inclues as well.
>
> Am I missing something? Thanks!
>
Dan Short - TMM Guest
-



Reply With Quote

