RE: Broken Images / Testing for file existence - JS to the rescue

2001-03-15 Thread ron
nitially. Ron Allen Hornbaker President/CTO Humankind Systems, Inc. http://humankindsystems.com mailto:[EMAIL PROTECTED] -Original Message- From: Tony Schreiber [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 6:38 AM To: CF-Talk Subject: RE: Broken Images / Testing for file

RE: Broken Images / Testing for file existence - JS to the rescue

2001-03-14 Thread ron
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

RE: Broken Images / Testing for file existence - JS to the rescue

2001-03-14 Thread Keith C. Ivey
[EMAIL PROTECTED] wrote: Let the client-side box do the work, with JavaScript. Interesting possibility. Of course, that still clutters your server log with 404 errors, which may be a consideration. And it requires additional network traffic, which may slow down the page display. But

RE: Broken Images / Testing for file existence - JS to the rescue

2001-03-14 Thread Tony Schreiber
This sounds interesting and I seem to have missed the suggestion/code... What was it? [EMAIL PROTECTED] wrote: Let the client-side box do the work, with JavaScript. Interesting possibility. Of course, that still clutters your server log with 404 errors, which may be a consideration.

Broken Images / Testing for file existence

2001-03-13 Thread Tony Schreiber
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

RE: Broken Images / Testing for file existence

2001-03-13 Thread Daniel Lancelot
use the FileExists() function in CF -Original Message- From: Tony Schreiber [mailto:[EMAIL PROTECTED]] Sent: 13 March 2001 08:06 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

RE: Broken Images / Testing for file existence

2001-03-13 Thread Hayes, David
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

RE: Broken Images / Testing for file existence

2001-03-13 Thread Tony Schreiber
From: Tony Schreiber [mailto:[EMAIL PROTECTED]] Sent: 13 March 2001 08:06 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 data

Re: Broken Images / Testing for file existence

2001-03-13 Thread Olivier Gostan
one solution i've used is to write a simple CFX to display the image. O- - Original Message - From: "Tony Schreiber" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Tuesday, March 13, 2001 3:27 AM Subject: RE: Broken Images / Testing for file existence D

RE: Broken Images / Testing for file existence

2001-03-13 Thread Caulfield, Michael
r, however, this won't be much help. -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

RE: Broken Images / Testing for file existence

2001-03-13 Thread Daniel Lancelot
March 2001 08:27 To: CF-Talk Subject: RE: Broken Images / Testing for file existence Doesn't help, since I said: "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"

RE: Broken Images / Testing for file existence

2001-03-13 Thread Tony Schreiber
I don't know that you can. That's kinda what I was thinking... I would store that info in the database; it could be a flag which simply indicates the existence of the file or not. You could write a CF page to update the db as often as necessary (once, hourly, daily, etc.); that page

RE: Broken Images / Testing for file existence

2001-03-13 Thread Tony Schreiber
: RE: Broken Images / Testing for file existence Doesn't help, since I said: "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" But thanks... use the

RE: Broken Images / Testing for file existence

2001-03-13 Thread Tim Bahlke
]] 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

RE: Broken Images / Testing for file existence

2001-03-13 Thread Phoeun Pha
Subject: RE: Broken Images / Testing for file existence Doesn't help, since I said: "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" But thanks... use the

RE: Broken Images / Testing for file existence

2001-03-13 Thread Tony Schreiber
:04 AM To: CF-Talk Subject: RE: Broken Images / Testing for file existence It's like 2.5 gigs of 250,000 images! I could, but I certinaly don't want to. ;p why dont ya just download all dem pics to your server? makes life easier -Original Message- From: Tony Schreiber