Highlighting Searched Words

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default Re: Highlighting Searched Words

    jeby wrote:
    > 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!
    The new Verity engine that's built into CF 7 has this capability, so
    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

  5. #4

    Default Re: Highlighting Searched Words

    Try this UDF for Highlighting: [url]http://cflib.org/udf.cfm?ID=133[/url]


    DaveF67 Guest

  6. #5

    Default 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

  7. #6

    Default 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

  8. #7

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139