> Does anybody have a suggestion? (Please keep it G rated.)
You can use HEAD requests to verify that the images exists and cache
the results of the tests locally, something like:
cfloop condition="remoteFile exists"
cfhttp method="head" url="remoteFile"
cfif (cfhttp.statusCode eq 404)
// file does not exist, break the loop
cfbreak
cfelse
// file exist, try next one
remoteFile = next remoteFile
/cfif
/cfloop
application.lastFileThatExists = remoteFile
--
Mack
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340082
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm