Re: [isfile] ?

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 11442
interpreted = N
texte = >I have the following WebDNA working, but there's a problem I cannot seem to >resolve. This code is supposed to show the tag only if the file is in >the previews folder. That part works fine, but ... > >when the file name I'm seeking does *not* exist in the previews folder, I >want to display a 'noPhotos.gif'. Any ideas how to do this? Never mind, I just came up with a solution! :) [ListFiles previews/] [showif [FileName]=[hls].gif] [/showif] [/ListFiles][hideif [ListFiles previews/][FileName][/ListFiles]^[hls].gif] [/hideif] The first section makes the [listfiles] context display only the file with the name [hls].gif, and if there's no file with that name, it displays nothing.The second part deals with the situation when there's no file with that name. It hides the none.gif image tag except when the first section displays nothing.Yes, I did it! :) I'm happy, can you tell?This one wasn't all that easy for me to figure out, but I did it and it works. Now all I have to do is add new files to the previews folder, and WebCat2 will either create the image tags for those files, or else it will create an image tag for the 'none.gif' file I want to display when the proper image file is not found.Sincerely, Ken Grome ..... ken@iav.com http://usarea.net/home.html Associated Messages, from the most recent to the oldest:

    
  1. Re: [isfile] ? (Grant Hulbert 1997)
  2. Re: [isfile] ? (Christer Olsson 1997)
  3. Re: [isfile] ? (Grant Hulbert 1997)
  4. Re: [isfile] ? (Kenneth Grome 1997)
  5. Re: [isfile] ? (Christer Olsson 1997)
  6. Re: [isfile] ? (Kenneth Grome 1997)
  7. Re: [isfile] ? (Kenneth Grome 1997)
  8. Re: [isfile] ? (Grant Hulbert 1997)
  9. Re: [isfile] ? (Kenneth Grome 1997)
  10. Re: [isfile] ? (grichter@panavise.com (Gary Richter) 1997)
  11. [isfile] ? (Kenneth Grome 1997)
>I have the following WebDNA working, but there's a problem I cannot seem to >resolve. This code is supposed to show the tag only if the file is in >the previews folder. That part works fine, but ... > >when the file name I'm seeking does *not* exist in the previews folder, I >want to display a 'noPhotos.gif'. Any ideas how to do this? Never mind, I just came up with a solution! :) [ListFiles previews/] [showif [FileName]=[hls].gif] [/showif] [/ListFiles][hideif [ListFiles previews/][FileName][/ListFiles]^[hls].gif] [/hideif] The first section makes the [listfiles] context display only the file with the name [hls].gif, and if there's no file with that name, it displays nothing.The second part deals with the situation when there's no file with that name. It hides the none.gif image tag except when the first section displays nothing.Yes, I did it! :) I'm happy, can you tell?This one wasn't all that easy for me to figure out, but I did it and it works. Now all I have to do is add new files to the previews folder, and WebCat2 will either create the image tags for those files, or else it will create an image tag for the 'none.gif' file I want to display when the proper image file is not found.Sincerely, Ken Grome ..... ken@iav.com http://usarea.net/home.html Kenneth Grome

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:

No incentive ... (2000) WebCat b13 CGI -shownext- (1997) Windows version Trouble Shooting (2007) Mac Vs WindowsNT (1997) wild question (1998) My slower response (1997) Security & Query Strings (2004) Cart passing in URL... (2004) On a related topic (2006) Initiating NewCart (1997) [WriteFile] problems (1997) update on wn searching (1997) Price and Formula.db (2002) PCS Customer submissions ? (1997) NT Manual (1997) PSC recommends what date format yr 2000??? (1997) Using Cookie for client specific info? (1997) [SearchString] problem with [search] context (1997) No one gets my client's code for free ... (2005) [ot] table gap help?!? (2001)