RE: Highlighting a Search Term

2005-10-08 Thread Bobby Hartsfield
Just append a url variable containing the search term to the link that opens
the next page so know what word(s) to highlight.

Eg...

http://link.to/my.doc?searchterm=#urlencodedformat(form.searchterm)#">
link to page
 

..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com



-Original Message-
From: Tony [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 07, 2005 12:36 PM
To: CF-Talk
Subject: Re: Highlighting a Search Term

i find it quite easy to just do this:

#replaceNoCase(getEntries.username,form.searchTerm,'#capFirst(form.searchTerm)#','all')#

basically just replacing the content of the value form.searchterm, in
the display
with the value and a pale yellow background.

tw

On 10/7/05, Matt Robertson <[EMAIL PROTECTED]> wrote:
> check out cflib.org.  Someone has written something that does that.
>
> --
> --mattRobertson--
> Janitor, MSB Web Systems
> mysecretbase.com
>
> 



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220483
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Highlighting a Search Term

2005-10-07 Thread Tony
i find it quite easy to just do this:

#replaceNoCase(getEntries.username,form.searchTerm,'#capFirst(form.searchTerm)#','all')#

basically just replacing the content of the value form.searchterm, in
the display
with the value and a pale yellow background.

tw

On 10/7/05, Matt Robertson <[EMAIL PROTECTED]> wrote:
> check out cflib.org.  Someone has written something that does that.
>
> --
> --mattRobertson--
> Janitor, MSB Web Systems
> mysecretbase.com
>
> 

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220369
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Highlighting a Search Term

2005-10-07 Thread Andy Matthews
Yep...

http://www.cflib.org/codeView.cfm?ID=133



-Original Message-
From: Matt Robertson [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 11:26 AM
To: CF-Talk
Subject: Re: Highlighting a Search Term


check out cflib.org.  Someone has written something that does that.

--
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.com



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220368
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Highlighting a Search Term

2005-10-07 Thread Matt Robertson
check out cflib.org.  Someone has written something that does that.

--
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.com

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220366
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Highlighting a Search Term

2005-10-07 Thread Les Mizzell
Ok,

I've got a search that looks through several fields in a database and 
returns a list of dynamically generated docs (Newsletters, mostly).

Current search is here:
http://www.nelsonmullins.com/news/nelson-mullins-news.cfm

Search for "medicare", for example.

I'd like to be able to click a specific doc in these results, and when 
taken to it, the original search term "medicare" for is highlighted.

Ideas?


-- 
---
Les Mizzell

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220364
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54