Re: Google does it... can WebDNA? Showing only the section with

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52574
interpreted = N
texte = Thanks Tom, We already came up with a solution. I'll try this next week when I'm back in the office to see which works faster. Regards, Tim > From: "Tom Duke" > Reply-To: (WebDNA Talk) > Date: Fri, 29 Aug 2003 09:01:41 +0100 > To: (WebDNA Talk) > Subject: Re: Google does it... can WebDNA? Showing only the section with > founditem > > Tim, > > This code was posted on the list some time ago by some kind soul. I have > deleted code specific to my use of it so you better check for any cut and > paste errors. > > - Tom > > > > [!] > > > > ------------------------------------ > ### Search Results ### > > [/!][search db=somedb.db&searchcriteria=[_waGROUP1data]][founditems][!] > > > ------------------------------------ > ### Set how many characters to show before and after the word ### > > [/!][MATH show=F]vShowChars=80[/MATH][!] > > > ------------------------------------ > ### Set the length of the word ### > > [/!][MATH show=F]vWordLen=[COUNTCHARS][_waGROUP1data][/COUNTCHARS][/MATH][!] > > > ------------------------------------ > ### Get the position of the word ### > > [/!][MATH show=F]vWordPos=[COUNTCHARS][MIDDLE > StartAfter=&EndBefore=[_waGROUP1data]][BTEXT][/MIDDLE][/COUNTCHARS][/MATH][!] > > > ------------------------------------ > ### Grab the text you want ### > > [/!][TEXT]vTextToShow=[GETCHARS > start=[MATH]vWordPos-vShowChars[/MATH]&end=[MATH]vWordPos+vShowChars+vWordLen[ > /MATH]][removehtml][BTEXT][/removehtml][/GETCHARS][/TEXT][!] > > > ------------------------------------ > ### Show the result ### > > [/!]

[BOLDWORDS [_waGROUP1data]][vTextToShow][/BOLDWORDS]...

> > > [/founditems][/search] > > > > ------------------------------------------------------------- > 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: Google does it... can WebDNA? Showing only the section with ( Tim Robinson 2003)
  2. Re: Google does it... can WebDNA? Showing only the section with ( Tim Robinson 2003)
  3. Google does it... can WebDNA? Showing only the section with ( Tim Robinson 2003)
Thanks Tom, We already came up with a solution. I'll try this next week when I'm back in the office to see which works faster. Regards, Tim > From: "Tom Duke" > Reply-To: (WebDNA Talk) > Date: Fri, 29 Aug 2003 09:01:41 +0100 > To: (WebDNA Talk) > Subject: Re: Google does it... can WebDNA? Showing only the section with > founditem > > Tim, > > This code was posted on the list some time ago by some kind soul. I have > deleted code specific to my use of it so you better check for any cut and > paste errors. > > - Tom > > > > [!] > > > > ------------------------------------ > ### Search Results ### > > [/!][search db=somedb.db&searchcriteria=[_waGROUP1data]][founditems][!] > > > ------------------------------------ > ### Set how many characters to show before and after the word ### > > [/!][MATH show=F]vShowChars=80[/MATH][!] > > > ------------------------------------ > ### Set the length of the word ### > > [/!][MATH show=F]vWordLen=[countchars][_waGROUP1data][/COUNTCHARS][/MATH][!] > > > ------------------------------------ > ### Get the position of the word ### > > [/!][MATH show=F]vWordPos=[countchars][MIDDLE > StartAfter=&EndBefore=[_waGROUP1data]][BTEXT][/MIDDLE][/COUNTCHARS][/MATH][!] > > > ------------------------------------ > ### Grab the text you want ### > > [/!][text]vTextToShow=[GETCHARS > start=[math]vWordPos-vShowChars[/MATH]&end=[math]vWordPos+vShowChars+vWordLen[ > /MATH]][removehtml][BTEXT][/removehtml][/GETCHARS][/TEXT][!] > > > ------------------------------------ > ### Show the result ### > > [/!]

[BOLDWORDS [_waGROUP1data]][vTextToShow][/BOLDWORDS]...

> > > [/founditems][/search] > > > > ------------------------------------------------------------- > 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/ Tim Robinson

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:

WebCatalog vidoes (was: Prices Dropped) (1998) pictures / referrer etc. (1998) Intermitent problem using [referrer] (1997) [cart] tag (2000) Make sure I understand this??? (1997) rename a file (1997) ShippingCosts (1998) image attachment (2002) Bug or syntax error on my part? (1997) & not allowed in db by definition? (1999) Upgrade probems (2000) New to WebCat, Help. (1998) Possible Bug in 2.0b15.acgi (1997) WebCat2 beta 11 - new prefs ... (1997) [WebDNA] Upgrade 4.5.1 to 6.0a (2009) Server Freeze (1998) SKU lookup (1997) Two prices in shoppingcart? (1997) [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow (2019) Encyption mail was Suggestions for Topics ... (1998)