Re: hideif/showif causes error if wrapped around searches

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52869
interpreted = N
texte = Gary, Yes, there is replication if you show/hide the entire search context. Unnecessary replication is a dangerous thing. If you could do it the way you wanted, with duplicate search contexts, that's still replication... Now you have two (or more) places to update WedDNA code. My method is to have one and only search context, and use showif and hideif within, and maybe setting a text variable now and then. Like you, I have my searches and results all in the same template, and keep my code pretty minimalist using techniques like this. Terry At 2:01 AM -0700 9/14/03, Gary Krockover wrote: >Thanks Terry. Yes, I know, you have to hide/show it all from the opening to >the closing search, but there's a ton of replicated HTML for me if I have to >cover up all that content to hide a search and then have all that content >for initially showing the search. Was hoping for some other type of work >around. I'll just use some [includes], should of thought of that last >night. > >GK > >Terry Wilson wrote: >> If I understand you correctly, I do this all the time by putting >> showifs and hideifs right in the search context to cover all kinds of >> incoming conditions, including table sorting as you suggest. >> >> [search db=...[showif [sort]=oneway]sorting codes[/showif][showif >> [sort]=anotherway]other sorting codes[/showif]......] >> >> You can't chop up a search context like you are trying to do. >> >> Terry Wilson ------------------------------------------------------------- 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:

    
  1. Re: hideif/showif causes error if wrapped around searches ( "WebDna @" 2003)
  2. Re: hideif/showif causes error if wrapped around searches ( Chris List Recipient 2003)
  3. Re: hideif/showif causes error if wrapped around searches ( "WebDna @" 2003)
  4. Re: hideif/showif causes error if wrapped around searches ( Chris List Recipient 2003)
  5. Re: hideif/showif causes error if wrapped around searches ( "Scott Anderson" 2003)
  6. Re: hideif/showif causes error if wrapped around searches ( Terry Wilson 2003)
  7. Re: hideif/showif causes error if wrapped around searches ( "Gary Krockover" 2003)
  8. Re: hideif/showif causes error if wrapped around searches ( Matthew A Perosi 2003)
  9. Re: hideif/showif causes error if wrapped around searches ( "Gary Krockover" 2003)
  10. Re: hideif/showif causes error if wrapped around searches ( "WebDna @" 2003)
  11. Re: hideif/showif causes error if wrapped around searches ( "Gary Krockover" 2003)
  12. Re: hideif/showif causes error if wrapped around searches ( "WebDna @" 2003)
  13. Re: hideif/showif causes error if wrapped around searches ( "Dan Strong" 2003)
  14. Re: hideif/showif causes error if wrapped around searches ( "Dan Strong" 2003)
  15. Re: hideif/showif causes error if wrapped around searches ( "WebDna @" 2003)
  16. Re: hideif/showif causes error if wrapped around searches ( "Gary Krockover" 2003)
  17. Re: hideif/showif causes error if wrapped around searches ( Terry Wilson 2003)
  18. hideif/showif causes error if wrapped around searches ( "Gary Krockover" 2003)
Gary, Yes, there is replication if you show/hide the entire search context. Unnecessary replication is a dangerous thing. If you could do it the way you wanted, with duplicate search contexts, that's still replication... Now you have two (or more) places to update WedDNA code. My method is to have one and only search context, and use showif and hideif within, and maybe setting a text variable now and then. Like you, I have my searches and results all in the same template, and keep my code pretty minimalist using techniques like this. Terry At 2:01 AM -0700 9/14/03, Gary Krockover wrote: >Thanks Terry. Yes, I know, you have to hide/show it all from the opening to >the closing search, but there's a ton of replicated HTML for me if I have to >cover up all that content to hide a search and then have all that content >for initially showing the search. Was hoping for some other type of work >around. I'll just use some [includes], should of thought of that last >night. > >GK > >Terry Wilson wrote: >> If I understand you correctly, I do this all the time by putting >> showifs and hideifs right in the search context to cover all kinds of >> incoming conditions, including table sorting as you suggest. >> >> [search db=...[showif [sort]=oneway]sorting codes[/showif][showif >> [sort]=anotherway]other sorting codes[/showif]......] >> >> You can't chop up a search context like you are trying to do. >> >> Terry Wilson ------------------------------------------------------------- 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/ Terry Wilson

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:

MATH TIME (1997) Multiple prices (1997) NTbeta18 corrupted? (1997) WebCat2 beta FTP site (1997) Drop Down Menu from comma delimited values. (2002) adding time (2003) WebCatalog 3.0.8 is on FTP... (2000) Large sites (2003) Download (1999) Emailer (1997) WebCommerce: Folder organization ? (1997) WebCat.acgi from /cgi-bin/? (1997) requiredfields HELP!! (2001) Summing fields (1997) Problems with Price field (1997) I have troubles to send message out (1998) Emailer choke (1997) project (1998) Pithy questions on webcommerce & siteedit (1997) any suggestions for creating a multi-lingual site? (1999)