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:
about this server and links to who (1997)
Why doesn't it change? (1998)
search results through frames (2000)
quickfix for view cart in storebuilder ??? (2002)
Date search bug (1998)
auto adding SKUs w/DB helper (1998)
Setting up shop (1997)
PSC recommends what date format yr 2000??? (1997)
Draft Manual, Tutorial, and more (1997)
What is WebDNA (1997)
Cool new site (1996)
Server Freeze (1998)
sort problems....bug or brain fart? (1997)
Problem with [Search] inside of [Loop]? (1997)
Some Advise needed (1997)
E-mailer error codes (1997)
Nested [SEARCH] and [REPLACE] problem. (1997)
matching shipto and others (1998)
WebCatalog studio (2000)
Change in Host? (1999)