I'm assuming these are real estate photos? Based on your description of the issue it sounds very familiar to what I've worked on for many years. If not then this may not apply.
Usually with real estate date they give you a photo count in the data feed. You can use that photo count to tell the slide show how many photos in needs to find. If this is not the case then doing the cfhttp checking for the header response for a limited number of photos is viable and I have done that in cases where the photo count was not available in the data. Just be aware that this WILL be a week point in the code and to have a timeout set and error handling in place to cover for when the photo server is not responding. Wil Genovese Sr. Web Application Developer/ Systems Administrator Wil Genovese Consulting [email protected] www.trunkful.com On Dec 15, 2010, at 10:30 AM, Jerry Johnson wrote: > > can you call a remote script that returns a dir or ls to get the file list? > > > > On Wed, Dec 15, 2010 at 11:08 AM, Dave Long <[email protected]> wrote: > >> >> Our server use ColdFusion 5 and MySQL 3.51. >> >> My application displays photos stored on a server remote from the server on >> which the app is hosted. The number of photos varies from one to twenty. >> The >> image files are named using a constant ID number plus a sequential number >> for each file, like this: 12345_p01.jpg, 12345_p02.jpg, and so on in order >> to relate them to a specific record on my server. >> >> My problem is this: I want to create a slide show of these photos but if >> there are only two photos, not twenty, how can I end the slide show after >> only two have been called for? If the files were on my server, I could use >> a >> conditional FileExists but that doesn't work for a remote server. >> >> Does anybody have a suggestion? (Please keep it G rated.) >> >> Dave Long >> >> >> -- >> This message has been scanned for viruses and >> dangerous content by MailScanner, and is >> believed to be clean. >> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:340084 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

