Re: Three new problems, maybe a fourth
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 12200
interpreted = N
texte = >>My code was somewhat different here because I need to find a single image>file that resides in a folder. Since all the files in that folder are .jpg>files, I wanted to put the file name of the ONE file I'm looking for into>an
tag, so I did this:>>
>>[listfiles photos/]>[showif [filename]=[lookup the name of the image in a database record]]>>[/showif]>[/listfiles]> |
>
>>When I checked the source in the browser, everything including - and after>- the listfiles context was missing. Does anyone see anything wrong with my>WebDNA code here? Just some things I might try....First I would make sure the [listfiles] with the correct directory stuff isworking. Might be a glich in the / handling. What I am suggesting here ispour all the images out of the folder, not just one.
[listfiles photos/] |
[/listfiles]
If that works then the only thing I might consider changing is when you doyou look-up change the return value from [filename] to [imagename]. Justmaybe something happens to the value lookup using [filename] which is a keyword in the [listfiles] context. I assume you have defined the value of[filename] elsewhere so when it does the look-up it knows which one topick. Or are you asking it to go over all the files in the databaselooking for one that matches from the folder to the database? Beyond that,untesting your code I don't see anything wrong with it. Just some thoughtsof things I would do or try next.===============================================Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com===============================================
Associated Messages, from the most recent to the oldest:
>>My code was somewhat different here because I need to find a single image>file that resides in a folder. Since all the files in that folder are .jpg>files, I wanted to put the file name of the ONE file I'm looking for into>an
tag, so I did this:>>
>>[listfiles photos/]>[showif [filename]=[lookup the name of the image in a database record]]>>[/showif]>[/listfiles]> |
>
>>When I checked the source in the browser, everything including - and after>- the listfiles context was missing. Does anyone see anything wrong with my>WebDNA code here? Just some things I might try....First I would make sure the
[listfiles] with the correct directory stuff isworking. Might be a glich in the / handling. What I am suggesting here ispour all the images out of the folder, not just one.
[listfiles photos/] |
[/listfiles]
If that works then the only thing I might consider changing is when you doyou look-up change the return value from [filename] to [imagename]. Justmaybe something happens to the value lookup using [filename] which is a keyword in the
[listfiles] context. I assume you have defined the value of[filename] elsewhere so when it does the look-up it knows which one topick. Or are you asking it to go over all the files in the databaselooking for one that matches from the folder to the database? Beyond that,untesting your code I don't see anything wrong with it. Just some thoughtsof things I would do or try next.===============================================Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com===============================================
grichter@panavise.com (Gary Richter)
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:
[OT] DOD again (2003)
Problems getting parameters passed into email. (1997)
Dummy Credit Card Number for debug? (1997)
pricing continued (1998)
PCS Frames (1997)
Add a field to the error log? (1997)
Mem per threads (1998)
IE 6 weirdness ??? (2002)
Re[2]: What am I doing wrong? (2000)
Searching multiple Databases (1997)
Session Number (1998)
syntax question, not in online refernce (1997)
serial number dishing (1997)
Help name our technology! I found it (1997)
WebCat2 - [format thousands] (1997)
Weird Math and SV (1997)
carriage returns in data (1997)
emailer and other smtp (1998)
WebMerchant 1.6 and SHTML (1997)
b12 cannot limit records returned and more. (1997)