Re: [/application] error?

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 11582
interpreted = N
texte = >Okay ... because I put this in one of my templates and it seems to work >fine ... > >[search db=control.db&[hideif [master]=change]ne[/hideif][showif >[master]=change]eq[/showif]userdatarq=randy&numtype=num&asnumsort=1] > >... but if you don't think I can rely on this technique to work all the >time, then I will watch out. > >Oh, maybe it works fine because the showif/hideif's are inside the >[search], so they are actually forced to be evaluated first ... because >enclosed tags and contexts are evaluated before their enclosing contexts?Yes, it is specifically designed to work that way (and yes you can rely on that working). Because the enclosure is 'perfect', meaning that the [hideif]..[/hideif] is completely contained within the parameters to the search context.You can even put [include] or [AppleScript] inside the parameters to any context. Whatever those things evaluate to in WebDNA is what will be substituted before passing those parameters to the context. Anywhere you can put an [xxx] variable, you can also put [xxx]...[/xxx] contexts. Whatever text the context evaluates to is what gets substituted there in the HTML.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors ===== Pacific Coast Software | WebCatalog Pro, WebCommerce Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: [/application] error? (Grant Hulbert 1997)
  2. Re: [/application] error? (Kenneth Grome 1997)
  3. Re: [/application] error? (Grant Hulbert 1997)
  4. Re: [/application] error? (Kenneth Grome 1997)
  5. Re: [/application] error? (Grant Hulbert 1997)
  6. [/application] error? (Kenneth Grome 1997)
>Okay ... because I put this in one of my templates and it seems to work >fine ... > >[search db=control.db&[hideif [master]=change]ne[/hideif][showif >[master]=change]eq[/showif]userdatarq=randy&numtype=num&asnumsort=1] > >... but if you don't think I can rely on this technique to work all the >time, then I will watch out. > >Oh, maybe it works fine because the showif/hideif's are inside the >[search], so they are actually forced to be evaluated first ... because >enclosed tags and contexts are evaluated before their enclosing contexts?Yes, it is specifically designed to work that way (and yes you can rely on that working). Because the enclosure is 'perfect', meaning that the [hideif]..[/hideif] is completely contained within the parameters to the search context.You can even put [include] or [AppleScript] inside the parameters to any context. Whatever those things evaluate to in WebDNA is what will be substituted before passing those parameters to the context. Anywhere you can put an [xxx] variable, you can also put [xxx]...[/xxx] contexts. Whatever text the context evaluates to is what gets substituted there in the HTML.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors ===== Pacific Coast Software | WebCatalog Pro, WebCommerce Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Grant Hulbert

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:

Introduction/Tutorial/QuickStart (1997) Quit revisited (1997) back button loses cart (2000) Bug in 4.5 - Needs to be fixed ASAP. (2002) [WebDNA] mail header timezone problem (2008) Grep and <> (2005) Country & Ship-to address & other fields ? (1997) Odd request (2003) Include vs. lookup? (1998) [thisurl] or another way (2000) listdatabases,flushdatabases browser problem not webcat (2000) DDEConnect not working (2006) service stop and restart (1997) Close-to Comparison Code (1998) Webcat 2.0.1 date math bug -> Crash! (1997) showif with math? (2000) Still Stumped on ShowNext...HELP! (1997) using showpage and showcart commands (1996) [WebDNA] Easier to install versions! (2012) E-mail Attachments (1997)