Re: Hiding Brands

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57400
interpreted = N
texte = This really needs to make its way into the online docs. Thanks for the tip. Bill > Alan White wrote: > >>>> Link
>>> >>> Other than
having an extra slash, it looks fine. ; ) >> >> >> This is for xhtml, you have to close any tags that do not have a closing tag >> in this way for it to validate xhtml. > > Look at your code above. You _do_ have an extra slash in the
tag, just > not the one you were thinking it was... > >> Couple of quick questions:- >> >> a) What is the pipe symbol for that surrounds [ID]? > > A delimiter. > >> b) If the pipe represents an OR control statement then should the parameters >> not be surrounded with inverted commas? (my experience of the if then else >> in WebDNA) > > No, it isn't an OR. > > This is a really old trick. By placing delimiters on both sides of the search > term (right side) and between each element of the search (left side), you > require the contains '^' operator to match not only the search term, but also > the two delimiters on either side. This is so you can prevent substring > matches. > > For example: > > [hideif |a|ab|abc|abcd|^|[id]|] > > will not fire if [id] is 'bcd'. > > HTH > > John ------------------------------------------------------------- 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: Hiding Brands ( Terry Wilson 2004)
  2. Re: Hiding Brands ( William DeVaul 2004)
  3. Re: Hiding Brands ( Clint Davis 2004)
  4. Re: Hiding Brands ( John Peacock 2004)
  5. Re: Hiding Brands ( Donovan Brooke 2004)
  6. Re: Hiding Brands ( John Peacock 2004)
  7. Re: Hiding Brands ( Donovan Brooke 2004)
  8. Re: Hiding Brands ( John Peacock 2004)
  9. Re: Hiding Brands ( Donovan Brooke 2004)
  10. Re: Hiding Brands ( Alan White 2004)
  11. Re: Hiding Brands ( John Peacock 2004)
  12. Re: Hiding Brands ( Alan White 2004)
  13. Re: Hiding Brands ( John Peacock 2004)
  14. Re: Hiding Brands ( Donovan Brooke 2004)
  15. Re: Hiding Brands ( Rob Marquardt 2004)
  16. Hiding Brands ( Alan White 2004)
This really needs to make its way into the online docs. Thanks for the tip. Bill > Alan White wrote: > >>>> Link
>>> >>> Other than
having an extra slash, it looks fine. ; ) >> >> >> This is for xhtml, you have to close any tags that do not have a closing tag >> in this way for it to validate xhtml. > > Look at your code above. You _do_ have an extra slash in the
tag, just > not the one you were thinking it was... > >> Couple of quick questions:- >> >> a) What is the pipe symbol for that surrounds [ID]? > > A delimiter. > >> b) If the pipe represents an OR control statement then should the parameters >> not be surrounded with inverted commas? (my experience of the if then else >> in WebDNA) > > No, it isn't an OR. > > This is a really old trick. By placing delimiters on both sides of the search > term (right side) and between each element of the search (left side), you > require the contains '^' operator to match not only the search term, but also > the two delimiters on either side. This is so you can prevent substring > matches. > > For example: > > [hideif |a|ab|abc|abcd|^|[id]|] > > will not fire if [id] is 'bcd'. > > HTH > > John ------------------------------------------------------------- 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/ William DeVaul

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:

[WebDNA] Which linux distros for webdna? (2008) Whats going on with my SERIAL NUMBER??? (1998) shipping costs (1997) Separate SSL Server (1997) [group] ? (1997) [WebDNA] sagepayments TLS? requests now failing (2018) Security Issues and WebCommerce Solution (1997) Garbage display after 100 records (was WebCatalog usage) (1997) WebMerchant 1.6 and https (1997) Summing fields (1997) X etc.... (1999) Server Creation - vendors (2005) Checkboxes (1997) Pay Flow Pro error (2002) SQL Error: 00000 (2004) math a various prices (1997) Cold Fusion Buster (1997) Silly date question (2006) WebCatalog can't find database (1997) SM's Tech Help (or lack of) (2000)