Re: For you expert WebDNA coders (was Re: Interesting speed

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 54434
interpreted = N
texte = >on 11/21/2003 6:56 pm, Kenneth Grome at kengrome@webdna.net so noted... > >> 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] > >Ken, url'ing static text? Shocked, I am! ; D Yeah, I programmed my text editor to pre-url both sides of my showif and hideif comparison automatically, then I just enter the values myself manually. I could have stripped out the extraneous url contexts in this example, but I didn't bother. Sometimes 'static text' values (such as those with spaces in them) actually need to be urled, and instead of typing %20 where the spaces are located, I usually just let webdna do it for me ... :) -- 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:

    
>on 11/21/2003 6:56 pm, Kenneth Grome at kengrome@webdna.net so noted... > >> 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] > >Ken, url'ing static text? Shocked, I am! ; D Yeah, I programmed my text editor to pre-url both sides of my showif and hideif comparison automatically, then I just enter the values myself manually. I could have stripped out the extraneous url contexts in this example, but I didn't bother. Sometimes 'static text' values (such as those with spaces in them) actually need to be urled, and instead of typing %20 where the spaces are located, I usually just let webdna do it for me ... :) -- 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:

Emailer setup (1997) Wanted: More Math Functions (or, Can You Solve This?) (1997) Other then credit cards-how? (1997) latest version? (1998) Displaying text and populating form fields (2005) [url] link (1998) Nested searches (1998) Where's Cart Created ? (1997) RE: is sku a REQUIRED field on NT (1997) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) User/pass with tcpconnect (2000) WebCatalog 2.0 & WebDNA docs in HTML ... (1997) webdna osx server startupitem (2003) Tax Troubles (2003) Post arguments problem mac? (1997) PSC recommends what date format yr 2000??? (1997) wo search help (1999) emailer (1997) Search for dates greater than [date] (1997) Multiple Newcarts (1996)