Ask a Question related to Macromedia ColdFusion, Design and Development.
-
jeby #1
Highlighting Searched Words
Hi All!
I am writing an application using Dreamweaver MX 2004, Coldfusion 7, and MySQL
Databases. I am wondering if there is a way to make it so that when a page of
search results is shown, the search work could be in bold every time it occurs
on the page. It would be similar to most search engines. I could really use
this and can not find a way to do it!!! Open to ALL suggestions! Thank you
very much for your help!
Thanks!
Josh Eby
[email]jeby@constps.org[/email]
jeby Guest
-
Highlighting words in Reader using commandline
Hi, I'm looking for a way to highlight given words within a PDF file using Acrobat Reader. I don't have the words' offsets, and I'd rather let... -
Searched Datagrid with Paging?
I am new to .NET, so bear with me. I have a datagrid with default paging of 10. I can page through it fine to the end. When I do a search from a... -
How to specify which files can be searched?
I'm building a site with Drupal (a CMS), which names many of its files with an extension of 'module' (e.g., system.module). Dreamweaver's text... -
replace words with bold words
Hello I was wondering if you guys could help me solve this using reg exp, i have a searchpage and a variable keywords that holds a number of... -
Highlighting Certain words in a document
Is there a way that I can have a page do some highlighting based on a set of given keywords? The scenario is that a user does a search for... -
jeby #2
Highlighting Searched Words
Hi All!
I am writing an application using Dreamweaver MX 2004, Coldfusion 7, and MySQL
Databases. I am wondering if there is a way to make it so that when a page of
search results is shown, the search work could be in bold every time it occurs
on the page. It would be similar to most search engines. I could really use
this and can not find a way to do it!!! Open to ALL suggestions! Thank you
very much for your help!
Thanks!
Josh Eby
[email]jeby@constps.org[/email]
jeby Guest
-
mpwoodward *TMM* #3
Re: Highlighting Searched Words
jeby wrote:
The new Verity engine that's built into CF 7 has this capability, so> Hi All!
>
> I am writing an application using Dreamweaver MX 2004, Coldfusion 7, and MySQL
> Databases. I am wondering if there is a way to make it so that when a page of
> search results is shown, the search work could be in bold every time it occurs
> on the page. It would be similar to most search engines. I could really use
> this and can not find a way to do it!!! Open to ALL suggestions! Thank you
> very much for your help!
depending on what you're trying to do you could index your database
content with Verity and use Verity for your searching:
[url]http://tinyurl.com/c879c[/url]
If you want to use MySQL directly, one way to do this would be to run a
regular expression on your search results before presenting them to the
user that would find the search terms and wrap them in bold tags.
Matt
--
Matt Woodward
Team Macromedia - ColdFusion
mpwoodward *TMM* Guest
-
DaveF67 #4
Re: Highlighting Searched Words
Try this UDF for Highlighting: [url]http://cflib.org/udf.cfm?ID=133[/url]
DaveF67 Guest
-
jeby #5
Re: Highlighting Searched Words
I know it has been a while since i have responded to this post but could you explain more about the regular expresion and show how to do that???
Thanks for the help!
jeby Guest
-
michaelmuller #6
Re: Highlighting Searched Words
I'm not sure if this is the same highlighter I've used in the past, but one
problem with the function is that it also highlights text in an anchor tag,
thus rendering the url and the whole tag useless. It would be nice if it didn't
highligh anything inside pairs of angle brackets.
michaelmuller Guest
-
revblont #7
Re: Highlighting Searched Words
Attached is code I used for a project some time back. check out [url]http://itafrica.org/pages/home.cfm?c=1[/url] and do a search for say "info".
revblont Guest



Reply With Quote

