Re: Replace Missing Images
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 53894
interpreted = N
texte = >> What I'm trying to figure out is if there is a way to dynamically >> display a>> image not available image, if the image in the img tag isn't found.>> If you are talking about not displaying the
![]()
tag if> the image isn't in the directory you will have to do a fileinfo> comparison.>> [FileInfo file=images/[image]][showif [exists]=T]
![]()
SRC="...">[/showif][/fileinfo]He wants a little bit more than that, a different, default image to show when the correct one is not available...Where [image] is the name of the file you are looking for...[FileInfo file=images/[image]][showif [exists]=T]
![](images/[image])
[/showif][showif [exists]!T]
![](images/image_not_available.jpg)
[/showif][/fileinfo]Paul-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>> What I'm trying to figure out is if there is a way to dynamically >> display a>> image not available image, if the image in the img tag isn't found.>> If you are talking about not displaying the
tag if> the image isn't in the directory you will have to do a fileinfo> comparison.>> [FileInfo file=images/[image]][showif [exists]=T]
SRC="...">[/showif][/fileinfo]He wants a little bit more than that, a different, default image to show when the correct one is not available...Where [image] is the name of the file you are looking for...[FileInfo file=images/[image]][showif [exists]=T]
[/showif][showif [exists]!T]
[/showif][/fileinfo]Paul-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Paul Willis
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
The max=0 issue is a bug ... CALL TO ACTION (2000)
Prevent multiple appends with Reload Button (1997)
Quit revisited (1997)
help needed w/ search params (1998)
U&P IIS concept (1998)
Hiding HTML and breaking the page (1997)
Re(2): Append command (1999)
Possible Bug in 2.0b15.acgi (1997)
WebCat2 several catalogs? (1997)
Shopping Cart ID (1998)
Redirect frame targets (1998)
Cookies and WebTV (1999)
MacActivity and PCS (1997)
Convert Chars Q (2000)
New public beta available (1997)
Problem with encrypted cookies (2000)
Calculating days, hours, minutes ago (2004)
shipcost (1997)
flushdatabases (2000)
Re:Has this happened to you? (1997)