It was recently discussed on the list how to hightlight keywords in a
document.  For this, simply run the process once for each keyword in the
list of keywords.  The hard part, it seems to me, would be to clean
user-created inputs before referencing them as a list per se.

So if we have two functions cleanlist() and highlightword() we might do:

cleanlist(keywordlist);
for (i = 1; i <= listlen(keywordlist); i = i+1)
{
        highlightword(document, listgetat(keywordlist, i));
}

HTH.


--  Ben Doom
    Programmer & General Lackey
    Moonbow Software, Inc

: -----Original Message-----
: From: Tuan [mailto:[EMAIL PROTECTED]]
: Sent: Monday, February 17, 2003 3:43 PM
: To: CF-Talk
: Subject: highlight MULTIPLE keywords in search results...
:
:
: Can somebody provide me with an example of how to highlight
: multiple keywords in a search result? For example say I wanted to
: search for "macromedia coldfusion, studio" the search results
: will highlight every instance of "macromedia", "coldfusion", and
: "studio" in the document.
:
:
:
: 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to