Re: Databases inside [SHOWIF]

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17278
interpreted = N
texte = >>I just noticed that databases that are referenced inside a [SHOWIF] are >>opeend, even if the [SHOWIF] is false. > >It's not a true bug, but certainly less efficient than it could be. I'll >add it to the list of enhancements. WebDNA is a dynamic language, and as >such it needs to look at everything inside hidden contexts, just so it can >know when is the right time to start 'showing' again.Just a thought -- but one that would actually make coding WebCat easier, as well as *possibly* giving you a mechanism for NOT opening the db's named inside a showif that's not going to be shown:The idea I'm thinking about is to give us the ability to *number* our showif contexts. For one thing, this would let us see more easily which starting and ending tags go together. In other words:[showif#1 something=somethingElse] [showif#2 this=that] [/showif#2] [hideif#2 this=that] [/hideif#2] [/showif#1] [hideif#1 something=somethingElse] [showif#3 come=go] [/showif#3] [hideif#3 come=go] [/hideif#3] [/hideif#1]With this technique, it may be possible to have WebCat evaluate the level #1 showifs and hideifs first, then the one that's NOT going to be shown is ignored (as far as anything inside it is concerned), and only the one that's going to be displayed will be looked into and interpreted further.Yes I know, this could create all kinds of new problems, especially if the user isn't VERY careful about the way he/she names these contexts. After all, who knows what problems might occur with more than one [showif#1] on a page?But that potential problem could be resolved as well, perhaps with a new preference that would let the user decide whether or not to use this new method of naming showifs and hideifs ... or to continue using the original method where the tags are never numbered ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: Databases inside [SHOWIF] (Kenneth Grome 1998)
  2. Re: Databases inside [SHOWIF] (Peter Ostry 1998)
  3. Re: Databases inside [SHOWIF] (Kenneth Grome 1998)
  4. Re: Databases inside [SHOWIF] (PCS Technical Support 1998)
  5. Databases inside [SHOWIF] (Michael Winston 1998)
>>I just noticed that databases that are referenced inside a [showif] are >>opeend, even if the [showif] is false. > >It's not a true bug, but certainly less efficient than it could be. I'll >add it to the list of enhancements. WebDNA is a dynamic language, and as >such it needs to look at everything inside hidden contexts, just so it can >know when is the right time to start 'showing' again.Just a thought -- but one that would actually make coding WebCat easier, as well as *possibly* giving you a mechanism for NOT opening the db's named inside a showif that's not going to be shown:The idea I'm thinking about is to give us the ability to *number* our showif contexts. For one thing, this would let us see more easily which starting and ending tags go together. In other words:[showif#1 something=somethingElse] [showif#2 this=that] [/showif#2] [hideif#2 this=that] [/hideif#2] [/showif#1] [hideif#1 something=somethingElse] [showif#3 come=go] [/showif#3] [hideif#3 come=go] [/hideif#3] [/hideif#1]With this technique, it may be possible to have WebCat evaluate the level #1 showifs and hideifs first, then the one that's NOT going to be shown is ignored (as far as anything inside it is concerned), and only the one that's going to be displayed will be looked into and interpreted further.Yes I know, this could create all kinds of new problems, especially if the user isn't VERY careful about the way he/she names these contexts. After all, who knows what problems might occur with more than one [showif#1] on a page?But that potential problem could be resolved as well, perhaps with a new preference that would let the user decide whether or not to use this new method of naming showifs and hideifs ... or to continue using the original method where the tags are never numbered ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net 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:

Re:webten vs. webstar (1998) day of year (2001) Bug Report, maybe (1997) turning every 5th line red (1998) OT (2001) [SearchString] usage (1997) another problem (1997) Re:Virtual hosting and webcatNT (1997) Design Help Needed (1998) WebCat for Unix?? (1997) PIXO support (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Queertrons? (1997) Find all in search. (2002) Card clearance, problems - solutions? (1997) [WriteFile] problems (1997) Dark Horse Comics success story (1997) How far do [showif]s go? (1997) [WebDNA] Sendmail problem (2009) all records returned. (1997)