Re: Showif = stumped?
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 36762
interpreted = N
texte = At 1:52 PM 06/27/2001, Jeff Logan wrote:>I can not figure out why the code below will not show the following >tags [tollfree], [phone], and [fax] when showif's are around it. I >remove the showif's and the items show up fine? Any ideas?>>Jeff Logan>>[showif [address]>0][address],[/showif] [showif >[city]>0][city],[/showif] [showif [state]>0][state][/showif] [showif >[zip]>0][zip][/showif]
>[showif [tollfree]>0]TollFree: [tollfree]
[/showif]>[showif [phone]>0]Phone: [phone]
[/showif]>[showif [fax]>0]Fax: [fax]
[/showif]It really depends on that the values of tollfree, fax, and phone are. If they're of the form (212) 555-5555, the [SHOWIF] fails because of the parentheses around the area code. You'll probably need to strip out all non-numeric characters using a [listwords].Also, you should definitely [URL] all your [showif]s, just to be safe.Michael-------------------------------------------------------------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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
At 1:52 PM 06/27/2001, Jeff Logan wrote:>I can not figure out why the code below will not show the following >tags [tollfree], [phone], and [fax] when showif's are around it. I >remove the showif's and the items show up fine? Any ideas?>>Jeff Logan>>[showif [address]>0][address],[/showif] [showif >[city]>0][city],[/showif] [showif [state]>0][state][/showif] [showif >[zip]>0][zip][/showif]
>[showif [tollfree]>0]TollFree: [tollfree]
[/showif]>[showif [phone]>0]Phone: [phone]
[/showif]>[showif [fax]>0]Fax: [fax]
[/showif]It really depends on that the values of tollfree, fax, and phone are. If they're of the form (212) 555-5555, the [showif] fails because of the parentheses around the area code. You'll probably need to strip out all non-numeric characters using a [listwords].Also, you should definitely [url] all your [showif]s, just to be safe.Michael-------------------------------------------------------------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://search.smithmicro.com/
Michael Winston
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:
problem serving foreign languages text (1997)
WebCatalog2 Feature Feedback (1996)
Affiliate Marketing Question #2 (1998)
Help name our technology! (1997)
Pgp&emailer (1997)
[WebDNA] 30 Minute Cookies (2016)
Not really WebCat (1997)
Accessing Server Environment Variables (2003)
[WebDNA] CORRECTION: 60% failure rate using replace in a loop (2010)
WCS Newbie question (1997)
WebCatalog 2.1b4/Mac available (1997)
f2 download problems (1997)
controlling user input (1998)
Date problems-more (1997)
RE: Purchased cart being overwritten (1997)
TCP Connect/send and CGI (2003)
Cron job for permissions (2000)
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)
b12 cannot limit records returned and more. (1997)
Secure Server (1997)