Re: Highlighting words found in a keyword search

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50557
interpreted = N
texte = Bravo! Another case of me overthinking the problem.Thanks ----- Original Message ----- From: Marc Kaiwi To: WebDNA Talk Sent: Wednesday, May 21, 2003 10:18 AM Subject: Re: Highlighting words found in a keyword search > I know someone's going to ask about the multiple words so in 4 lines > you can do this: > > [Text]My_String=A San Francisco school bus driver is facing a felony > drunken driving charge after he allegedly ran a stop sign... [/text] > [FormVariables] > [Text]My_String=[grep search= [value] &replace= style=background-color: yellow>[value] > ][My_String][/grep][/text] > [/FormVariables] > > Demo: > http://otis.kaiwi.com/SpiderBotLock/ > wordsearch2.tpl?arg1=bus&arg2=felony&arg3=charge&arg4=stop > > On Wednesday, May 21, 2003, at 09:54 AM, Marc Kaiwi wrote: > > > I can do that in 2 lines, here's the code: > > > > [Text]My_String=A San Francisco school bus driver is facing a felony > > drunken driving charge after he allegedly ran a stop sign [/text] > > [grep search= [arg] &replace= > yellow>[arg]][My_String][/grep] > > > > try: http://otis.kaiwi.com/SpiderBotLock/wordsearch.tpl?arg=bus > > > > : c) > > > > Hope this helps > > > > MK > > > > > > On Wednesday, May 21, 2003, at 09:23 AM, WebCat @ Inkblot Media wrote: > > > >> Marc brought up a good point. > >> > >> If you search for an a you break it. This is because of my loop+grep > >> feature. It is finding the a in the span I use to highlight. > >> > >> If someone could fix the GREP to excluse anything between < and > > >> then it > >> should be ok. > >> > >> You could also use a temp database and [convetwords], but you will > >> need to > >> pass some sort of session code or set a cookie to know what temp > >> database > >> goes with the user. This in my opinion is not that great of an idea > >> for high > >> traffic sites, because you will have a lot of temp databases. > >> > >> I do not know enough about webcats GREP, but I know in UNIX you can > >> make > >> grep do some amazing trick stuff. > >> > >> Let's all get our heads together and make a good snippet of code. > >> > >> > > Signed: Marc Kaiwi > > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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: Highlighting words found in a keyword search (Gary Krockover 2003)
  2. Re: Highlighting words found in a keyword search (Brian Fries 2003)
  3. Re: Highlighting words found in a keyword search (marc@kaiwi.com (Marc Kaiwi) 2003)
  4. Re: Highlighting words found in a keyword search (marc@kaiwi.com (Marc Kaiwi) 2003)
  5. Re: Highlighting words found in a keyword search (Rob Marquardt 2003)
  6. Re: Highlighting words found in a keyword search (Gary Krockover 2003)
  7. Re: Highlighting words found in a keyword search (marc@kaiwi.com (Marc Kaiwi) 2003)
  8. Re: Highlighting words found in a keyword search (andy mowrey 2003)
  9. Re: Highlighting words found in a keyword search (marc@kaiwi.com (Marc Kaiwi) 2003)
  10. Re: Highlighting words found in a keyword search (marc@kaiwi.com (Marc Kaiwi) 2003)
  11. Re: Highlighting words found in a keyword search (Rob Marquardt 2003)
  12. Re: Highlighting words found in a keyword search (Gary Krockover 2003)
  13. Re: Highlighting words found in a keyword search (WebCat @ Inkblot Media 2003)
  14. Re: Highlighting words found in a keyword search (marc@kaiwi.com (Marc Kaiwi) 2003)
  15. Re: Highlighting words found in a keyword search (marc@kaiwi.com (Marc Kaiwi) 2003)
  16. Re: Highlighting words found in a keyword search (WebCat @ Inkblot Media 2003)
  17. Re: Highlighting words found in a keyword search (WebCat @ Inkblot Media 2003)
  18. Re: Highlighting words found in a keyword search (Kenneth Grome 2003)
  19. Re: Highlighting words found in a keyword search (Gary Krockover 2003)
  20. Re: Highlighting words found in a keyword search (Gary Krockover 2003)
  21. Re: Highlighting words found in a keyword search (Christer Olsson 2003)
  22. Re: Highlighting words found in a keyword search (Rajeev Kumar 2003)
  23. Re: Highlighting words found in a keyword search (Stuart Tremain 2003)
  24. Re: Highlighting words found in a keyword search (Rajeev Kumar 2003)
  25. Re: Highlighting words found in a keyword search (Tim Robinson 2003)
  26. Re: Highlighting words found in a keyword search (Kenneth Grome 2003)
  27. Highlighting words found in a keyword search (Gary Krockover 2003)
Bravo! Another case of me overthinking the problem.Thanks ----- Original Message ----- From: Marc Kaiwi To: WebDNA Talk Sent: Wednesday, May 21, 2003 10:18 AM Subject: Re: Highlighting words found in a keyword search > I know someone's going to ask about the multiple words so in 4 lines > you can do this: > > [text]My_String=A San Francisco school bus driver is facing a felony > drunken driving charge after he allegedly ran a stop sign... [/text] > [formvariables] > [text]My_String=[grep search= [value] &replace= style=background-color: yellow>[value] > ][My_String][/grep][/text] > [/FormVariables] > > Demo: > http://otis.kaiwi.com/SpiderBotLock/ > wordsearch2.tpl?arg1=bus&arg2=felony&arg3=charge&arg4=stop > > On Wednesday, May 21, 2003, at 09:54 AM, Marc Kaiwi wrote: > > > I can do that in 2 lines, here's the code: > > > > [text]My_String=A San Francisco school bus driver is facing a felony > > drunken driving charge after he allegedly ran a stop sign [/text] > > [grep search= [arg] &replace= > yellow>[arg]][My_String][/grep] > > > > try: http://otis.kaiwi.com/SpiderBotLock/wordsearch.tpl?arg=bus > > > > : c) > > > > Hope this helps > > > > MK > > > > > > On Wednesday, May 21, 2003, at 09:23 AM, WebCat @ Inkblot Media wrote: > > > >> Marc brought up a good point. > >> > >> If you search for an a you break it. This is because of my loop+grep > >> feature. It is finding the a in the span I use to highlight. > >> > >> If someone could fix the GREP to excluse anything between < and > > >> then it > >> should be ok. > >> > >> You could also use a temp database and [convetwords], but you will > >> need to > >> pass some sort of session code or set a cookie to know what temp > >> database > >> goes with the user. This in my opinion is not that great of an idea > >> for high > >> traffic sites, because you will have a lot of temp databases. > >> > >> I do not know enough about webcats GREP, but I know in UNIX you can > >> make > >> grep do some amazing trick stuff. > >> > >> Let's all get our heads together and make a good snippet of code. > >> > >> > > Signed: Marc Kaiwi > > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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/ WebCat @ Inkblot Media

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:

[OT] FTP client (2003) catagories (1997) [WebDNA] List words with string delimiter (2017) Bug Report, maybe (1997) Sorting LISTFILES (1997) emailer (1997) is sku a REQUIRED field on NT (1997) How To question on setting up downloads (1997) Displaying photo attached to first record (1997) RE: [WebDNA] WebDNA Start-up Error (2012) displaying New products (using [date]) (1997) WebCat2 - [format thousands] (1997) mail on NT (1998) Showif for mulitple variations (1997) UPDATE PROBLEM (1997) Pithy questions on webcommerce & siteedit (1997) Help!HELP!HELP! (1999) suggestion (1997) Why is [lookup] case sensitive? (2001) emailer w/F2 (1997)