Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Highlighting keywords in the verity search summary

Posted on 2003-11-06
2
Medium Priority
?
287 Views
Last Modified: 2013-12-24
i was wondering if there is an easy way of highlighting a keyword in the verity search summary.

At the moment i have a simple text box at the top of my page where the user enters their search
criteria.

When they hit the search button it simply searches through a collection of cvs and displays a summary.

All i want to do is highlight the words in the summary that match the users search criteria.

Is there an easy way of doing this??

thanks
0
Comment
Question by:jturkington
2 Comments
 
LVL 2

Accepted Solution

by:
jonnygo55 earned 2000 total points
ID: 9695474
is the summary in a single variable...and the search is a single word...if so you could do something like

<cfset highlightedKeyword = '<font color="yellow">' & keyword & '</font>'>
<cfset newSummary = replace(oldSummary,keyword,highlightedKeyword,'ALL')>

if it is a more complex search criteria you would have to modify it...
0
 
LVL 10

Expert Comment

by:substand
ID: 9699359
let know if you still need help
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
What You Need to Know when Searching for a Webhost Provider
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question