Re: For you expert WebDNA coders (was Re: Interesting speed
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 54404
interpreted = N
texte = Here's another approach in only 4 lines:[text]defaultPage=[include file=includes/info_home.inc][/text][text]includePage=[include file=includes/[page].inc][/text][showif [url][includePage][/url]~[url]error[/url]][defaultPage][/showif][hideif [url][includePage][/url]~[url]error[/url]][includePage][/hideif]>If I'm reading you correctly, you're just looking for the value of a single>passed variable (page) so the [formvariables] is some serious overkill.>>[if "[url][page][/url]"!"%5Bpage%5D"][then]> [FileInfo file=includes/[page].inc]> [If "[Exists]"="T"][then]> [include file=includes/[page].inc]> [/then][else]> [include file=includes/info_home.inc]> [/else][/if]> [/fileInfo]>[/then][else]> [include file=includes/info_home.inc]>[/else][/if]-- Sincerely,Kenneth Grome-------------------------------------------------------------Outsource your WebDNA programming for $18 an hour or less!--------------------------------------------------------------------------------------------------------------------------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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Here's another approach in only 4 lines:[text]defaultPage=[include file=includes/info_home.inc][/text][text]includePage=[include file=includes/[page].inc][/text][showif [url][includePage][/url]~[url]error[/url]][defaultPage][/showif][hideif [url][includePage][/url]~[url]error[/url]][includePage][/hideif]>If I'm reading you correctly, you're just looking for the value of a single>passed variable (page) so the [formvariables] is some serious overkill.>>[if "[url][page][/url]"!"%5Bpage%5D"][then]> [FileInfo file=includes/[page].inc]> [If "[Exists]"="T"][then]> [include file=includes/[page].inc]> [/then][else]> [include file=includes/info_home.inc]> [/else][/if]> [/fileInfo]>[/then][else]> [include file=includes/info_home.inc]>[/else][/if]-- Sincerely,Kenneth Grome-------------------------------------------------------------Outsource your WebDNA programming for $18 an hour or less!--------------------------------------------------------------------------------------------------------------------------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://webdna.smithmicro.com/
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:
Error handling for accountNum (1997)
[LOOKUP] (1997)
UPS Shipping (1999)
Webstar 1.3.1 PPC (1997)
Sum of Quantities (1997)
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)
Visitor info (2000)
wrong input values? (1997)
A question on sub-categories (1997)
Help name our technology! (1997)
Search for 20 finds 2000, 200 Why? (1997)
[shownext] and descending order (1997)
ConvertChars (2000)
Incrementing a number (1998)
RE: Re:Signal Raised (1997)
server2003 (2004)
Running 2 two WebCatalog.acgi's (1996)
Two prices in shoppingcart? (1997)
WC2b15 File Corruption (1997)
FW: writefile and emailer (2002)