Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
DuLaus #1
Missing image in url
Hi I have to retrieve images using <img
src=http://www.othersite.com/graphics/thumbimages/#prefix#/#hotels.Id#-01.jpg></
a> That works fine if in fact there is an image but the problem is when there
is no image with the respective ID. Can someone suggest a work around if there
is no image at the URL. Thanks
DuLaus Guest
-
distiller missing text and image links when saving to pdf
Your workflow is similar to bringing home a chinese takeaway, placing in a blender, then into the freezer, de-frosting and complaining it doesn't... -
Links missing/update dialog missing upon file open
I am experiencing a strange problem when opening files with InDesign CS2. The usaul dialog box alerting you to missing/updated links does not appear.... -
YouTube videos missing but there...what am I missing?
Under my account of Guestdemo I had uploaded about 6 videos or so. I made them public and then made them private. When I go to my account it says... -
Missing Image when PDF is created.
Using Adobe Photo Shop 7 on Mac OS 9.2.2 a clipping is done of a photo and saved as a TIFF. The TIFF is then placed onto a Quark 4.11 document. The... -
missing guides. missing cursors. missing a good drawing app. Ugh.
I can't see my text cursor. It's invisible. Why? I can't see new guides I drag onto the documents. They are there, I just can't see them. Why? ... -
ProWebService #2
Re: Missing image in url
Try:
<cfif Isdefined('hotels.Id') AND hotels.Id NEQ "">
<img
src=http://www.othersite.com/graphics/thumbimages/#prefix#/#hotels.Id#-01.jpg>
</cfif>
Checks to see if it exists then makes sure that it is not empty.
Tom
ProWebService Guest
-
DuLaus #3
Re: Missing image in url
Hi ProWeb The #hotels.Id# is always going to be present for other data so it
will always be true. When the image is not available I still get a broken
image link showing. If I could use something like FileExists, but I only see
reference examples to a path and not a URL. Thanks
DuLaus Guest
-
-
kyle969 #5
Re: Missing image in url
you could use javascript, something like:
<script>
var img1 = new Image() ;
var imgAlt = new Image() ;
img1.src =
'http://www.othersite.com/graphics/thumbimages/#prefix#/#hotels.Id#-01.jpg';
mgAlt.src = 'http://www.othersite.com/graphics/thumbimages/defaultImage.jpg';
if(img1)
myPic.src = img1.src;
else
myPic.src = imgAlt.src;
</script>
<img src="" name="myPic" id="myPic">
kyle969 Guest
-
cf_menace #6
Re: Missing image in url
Check to see if the FileExists():
<cfset hotelImage = ExpandPath('graphics/thumbimages/' & prefix) &
"/#hotels.Id#-01.jpg">
<cfif FileExists(hotelImage)>
<img
src="http://www.othersite.com/graphics/thumbimages/#prefix#/#hotels.Id#-01.jpg"
/>
<cfelse>
<img src="http://www.othersite.com/graphics/thumbimages/noImage.jpg" />
</cfif>
cf_menace Guest
-
DuLaus #7
Re: Missing image in url
Thanks for the posts. cf_menace <cfset hotelImage =
ExpandPath('graphics/thumbimages/' & prefix) & '/#hotels.Id#-01.jpg'>
I still have not figured out the above (I have not tried this code yet). Why
am I setting a path to an image with the cfset statement when it is on another
server. Thanks
DuLaus Guest



Reply With Quote

