Instead of linking to
thedocpage.cfm
link to
highlightpage.cfm?term=search%20term&page=thedocpage.cfm

Let highlightpage.cfm do a cfhttp (there may be a more direct and efficient
way to do this, but this is off the cuff) and run your replace on the
contents, then display them.


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

: -----Original Message-----
: From: Tuan [mailto:[EMAIL PROTECTED]]
: Sent: Friday, February 14, 2003 4:32 PM
: To: CF-Talk
: Subject: Highlighting search keyword problem
:
:
: Ok, I've searched and read many topics on how to highlight
: keywords from a search result, but im still having problems
: figuring this out. All of the topics and examples that i've seen
: shows how to do it if your search result(detailed) page is
: created by ur search query. If thats the case then you would use
: the ReplaceNoCase function on your search query.  Or other
: examples showed that the text was already set to a variable which
: then was used by the ReplaceNoCase function to highlight the text.
:
: But my problem is what if in your application you have a search
: function that runs and the search results shows a list of doc
: titles that contains the keyword that the user searched.  Now
: each doc title most likely has a different template name
: associated with it.  When you click on the title it will take you
: to different templates that existed previously w/o having any
: relationship with the search query at all (except for it
: contained that keyword).  How can i apply the highlighting of the
: keywords to these already existing documents?  I'm sorry if this
: isn't very clear.
:
:
:
: 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

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

Reply via email to