Re: Highlighting words found in a keyword search
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 50569
interpreted = N
texte = Sorry, couldn't resist. If it's case insensitive you want then read this and weep:[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_RegX=[loop start=1&end=[CountChars][value][/CountChars]&advance=1][!] [/!][[Uppercase][GetChars start=[index]&end=[index]][value][/GetChars][/Uppercase][!] [/!][Lowercase][GetChars start=[index]&end=[index]][value][/GetChars][/Lowercase]][!] [/!][/loop][/Text] [Text]My_String=[grep search=([My_RegX])&replace=
\1 ][My_String][/grep][/text][/FormVariables][My_String]And still in under 10 lines of code!View this baby online and live only at: http://otis.kaiwi.com/SpiderBotLock/ wordsearch3.tpl?arg1=ScHoOl&arg2=FaCiNg&arg3=ChArGe: c)Sorry just couldn't resist.MKOn Wednesday, May 21, 2003, at 11:29 AM, Gary Krockover wrote:> Dunno why, but I had to modify Mark's script to this (took out the> formvariables and used a loop):>> [Text]My_String=[notes][/text]> [loop start=1&end=[numfound]]> [grep search=[woGroup1data]&replace=
yellow>[woGroup1data]]> [My_String]> [/grep]> [/loop]>> The [value] in [formvariables] was throwing me, since I'm passing more > than> just the search term.>> Now, if I can just fix the case sensitive issue I'm in business!>> Thanks Mark for shedding some light, I knew there had to be a simple > 3-5> line fix for this instead of all the showif/hideif/jump through hoops > way> that I was doing it.>> GKSigned: 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/
Associated Messages, from the most recent to the oldest:
Sorry, couldn't resist. If it's case insensitive you want then read this and weep:[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_RegX=[loop start=1&end=[countchars][value][/CountChars]&advance=1][!] [/!][[uppercase][GetChars start=[index]&end=[index]][value][/GetChars][/Uppercase][!] [/!][lowercase][GetChars start=[index]&end=[index]][value][/GetChars][/Lowercase]][!] [/!][/loop][/Text] [text]My_String=[grep search=([My_RegX])&replace= \1 ][My_String][/grep][/text][/FormVariables][My_String]And still in under 10 lines of code!View this baby online and live only at: http://otis.kaiwi.com/SpiderBotLock/ wordsearch3.tpl?arg1=ScHoOl&arg2=FaCiNg&arg3=ChArGe: c)Sorry just couldn't resist.MKOn Wednesday, May 21, 2003, at 11:29 AM, Gary Krockover wrote:> Dunno why, but I had to modify Mark's script to this (took out the> formvariables and used a loop):>> [text]My_String=[notes][/text]> [loop start=1&end=[numfound]]> [grep search=[woGroup1data]&replace= yellow>[woGroup1data]]> [My_String]> [/grep]> [/loop]>> The [value] in [formvariables] was throwing me, since I'm passing more > than> just the search term.>> Now, if I can just fix the case sensitive issue I'm in business!>> Thanks Mark for shedding some light, I knew there had to be a simple > 3-5> line fix for this instead of all the showif/hideif/jump through hoops > way> that I was doing it.>> GKSigned: 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/
marc@kaiwi.com (Marc Kaiwi)
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:
Middle Context (2002)
Nested search (1997)
God's Truth (1998)
Can't Search field (1998)
encryption seeds xing (1998)
two part electronic product (1998)
Forms Search Questions (1997)
[SearchString] problem with [search] context (1997)
WebCat2: Items xx to xx shown, etc. (1997)
Parse question (2005)
suffix mapping for NT? (1997)
type 2 errors with ssl server (1997)
security problem (1997)
[date format] w/in sendmail (1997)
Where is f2? (1997)
Weird cart problem (webcat 2.x) (2000)
Email (1998)
Emailer (1997)
Re2: frames & carts (1997)
WC 2.0 frames feature (1997)