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:
[SHOWIF] PROBLEM (2000)
Interpreting WebDNA in javascript (2006)
rotating thumbnails (1997)
Character limit in [Search]? (1998)
mwhs marketing,Dutchlink (2000)
random in arizona (2003)
WebCat2: Items xx to xx shown, etc. (1997)
Re[2]: Re[2]: WebCatalog on Linux (2000)
Bug or syntax error on my part? (1997)
DNS Lookup 2 (2000)
bugs w/! &/or bad scripting??? (1997)
PCS Customer submissions ? (1997)
Bug Report, maybe (1997)
Search in 2 or more catalogs (1997)
Progress !! WAS: Trouble with formula.db (1997)
RE: URL too Long? (1997)
That Flakey 'Brawl' thing (1997)
PIXO (1997)
Webcat memory usage Q (2002)
Authenticate (1997)