Re: WebCat2b12 - nesting [tags]

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 10429
interpreted = N
texte = >>[showif [link]=browse][search db=xxx?parametersHere][/showif] > >This is an example of imperfect nesting, which is definitely not allowed.Right, the [search] context is not completely nested, it's only partially nested. I didn't know whether or not you programmed WebCat2 to interpert certain contexts before others, in other words giving them a 'preference' so to speak ... or if you used another framework for interpreting these tags.>It's because ShowIf itself can have other complex embedded WebDNA in it >(including other ShowIfs), so there is no way to know what to do 'first'. > >I suggest the following instead: > >[showif [link]=browse][include searchstuff][/showif] >[showif [link]!browse][include nonsearchstuff][/showif]My form is actually a very complex form as it is, since I have several other [showif] contexts on the page, but thanks, I'll see what I can do. In this case I think it's going to be easier to just do a whole separate form ...Sincerely, Ken ------------------------------------ To leave this talk list send an email to macjordomo@smithmicro.com with BODY unsubscribe WebDNA-Talk ------------------------------------ Associated Messages, from the most recent to the oldest:

    
  1. Re: WebCat2b12 - nesting [tags] (Kenneth Grome 1997)
  2. Re: WebCat2b12 - nesting [tags] (Grant Hulbert 1997)
  3. WebCat2b12 - nesting [tags] (Kenneth Grome 1997)
>>[showif [link]=browse][search db=xxx?parametersHere][/showif] > >This is an example of imperfect nesting, which is definitely not allowed.Right, the [search] context is not completely nested, it's only partially nested. I didn't know whether or not you programmed WebCat2 to interpert certain contexts before others, in other words giving them a 'preference' so to speak ... or if you used another framework for interpreting these tags.>It's because ShowIf itself can have other complex embedded WebDNA in it >(including other ShowIfs), so there is no way to know what to do 'first'. > >I suggest the following instead: > >[showif [link]=browse][include searchstuff][/showif] >[showif [link]!browse][include nonsearchstuff][/showif]My form is actually a very complex form as it is, since I have several other [showif] contexts on the page, but thanks, I'll see what I can do. In this case I think it's going to be easier to just do a whole separate form ...Sincerely, Ken ------------------------------------ To leave this Talk List send an email to macjordomo@smithmicro.com with BODY unsubscribe WebDNA-Talk ------------------------------------ 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:

Execute Applescript (1997) GuestBook example (1997) [WebDNA] Version 7.x: webdna.ini and EmailerPrefs (2012) Search returns all, not 20 (1997) ImageMagick on OSX (2003) Attn: Bug in GeneralStore example b15 (1997) Error Log.db --however (1997) Summing fields (1997) Not really WebCat- (1997) problems with 2 tags (1997) [SHOWIF] (1997) [SearchString] usage (1997) Problems reading files created by WC (1997) Help on how to store calculated value (2002) Adding freight and percentages (2000) Error Lob.db records error message not name (1997) Modifying databases manually (was Banner DNA) (1997) Case statement (2003) WebCat2b12 CGI Mac - [shownext] problem (1997) [WebDNA] Does anyone host webdna sites? (2016)