I am attempting to prevent broken pictures on a page displaying details
regarding real estate listings. Agents are allowed to upload as many as 12
pictures of a particular listing but frequently post less than twelve. When
that happens, a "broken picture" emblem appears, and we want to eliminate
that.

An example of the (not working) test page can be found at:

http://www.vacationlandproperties.com/Residential_Listing.cfm?RecordID=89255

I have entered some extraneous code in order to determine that the correct
path is being used, thusly:

<cfset PhotoLocation = "http://mls.northernweb.net/images/Photo";>
<cfset PhotoLocation = PhotoLocation & ViewField20>
<table align="center" cellpadding="1" cellspacing="0" border="0">
<tr><td colspan="5" align="center">#PhotoLocation#-2.jpeg<br>
<cfif FileExists('#PhotoLocation#-2.jpeg')>Yes, it's here.<cfelse>I couldn't
find it.</cfif>
</td></tr>
 
As you can see at the test page, the path to the photo shows up correctly
but the CFIF tag is unable to produce desired results.

Any idea of what I am doing wrong? Is there a better way to test to see if a
file exists in order to avoid broken pictures on the page?

Thanks,

Dave Long


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318716
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to