There's a custom tag at the exchange, CF_ImgMultifunction -
http://devex.allaire.com/developer/gallery/info.cfm?ID=CA34776B-2830-11D4-AA
9700508B94F380&method=Full, that I've used and has worked well for me.

Tim Bahlke

> -----Original Message-----
> From: Tony Schreiber [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 13, 2001 2:06 AM
> To: CF-Talk
> Subject: Broken Images / Testing for file existence
> 
> 
> I have an application where I list several items on a page 
> and display an
> image for that item based on a reference number (ie, 
> productnum+.jpg). The
> database table does not tell me whether there is an image for 
> that item
> and there are many that do have one.
> 
> I'd like to display an alternate image (or nothing at all) 
> when there is
> no image present, but I can't see using an <CFIF FileExists> for every
> item for 50 or so on a page. Plus, I can't even do that because I'm
> grabbing the images from a different server via http only (<IMG
> SRC="http://otherserver/path/number.jpg>)...
> 
> How can I avoid displaying broken images?
> 
> 
> Tony Schreiber, Senior Partner                  Man and 
> Machine, Limited
> mailto:[EMAIL PROTECTED]                   
> http://www.technocraft.com
> 
> http://www.linktoss.com _______The Fastest Way to Send a Link 
> to Anyone!
> http://www.digitacamera.com ______________DigitA Camera 
> Scripts and Tips
> http://www.is300.net ___________The Enthusiast's Home of the 
> Lexus IS300
> http://www.cfug-sfl.org ___________South Florida Cold Fusion 
> Users Group
> http://www.simplemessageboard.com ___Free Forum Software for 
> Cold Fusion
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to