Re: Hiding Brands

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57390
interpreted = N
texte = on 4/16/04 4:49 PM, John Peacock at jpeacock@rowman.com wrote: > 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... errrr..... Woops ;-) > >> Couple of quick questions:- >> >> a) What is the pipe symbol for that surrounds [ID]? > > A delimiter. Okay... Thought so but just wanted to check why it was there... > >> 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 Thankyou very much everyone, I now have another nifty snippet for my toolbox. Maybe someone could add something to the interactive docs as a reference point for other users???? Alan ------------------------------------------------------------- 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)
on 4/16/04 4:49 PM, John Peacock at jpeacock@rowman.com wrote: > 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... errrr..... Woops ;-) > >> Couple of quick questions:- >> >> a) What is the pipe symbol for that surrounds [ID]? > > A delimiter. Okay... Thought so but just wanted to check why it was there... > >> 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 Thankyou very much everyone, I now have another nifty snippet for my toolbox. Maybe someone could add something to the interactive docs as a reference point for other users???? Alan ------------------------------------------------------------- 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/ Alan White

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:

WC2b12: Yes, Formulas.db is for real (1997) [Announce]: Web server security and password protection (1997) Webcatalog and foreign languages (1998) File Security (1999) Cart sweeper (2000) REPOST: Large founditems loops (2000) Requiring that certain fields be completed (1997) PCS Customer submissions ? (1997) [WebDNA] Middle Question (2015) Silly Question (2003) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Date/Time format problems (1997) Incompatibility with WebCat 3 templates ... (2000) [WebDNA] How to code a 301 redirect (2008) shipcost (1997) How to Display text in empty fields (1997) A quickie question (1997) showcart is slow (1998) WebCat2: Items xx to xx shown, etc. (1997) Multiple prices (1997)