Anyone know how to control the length of a binding and highlight a search word?
I am using ASP/MS Access and have keyword search box on site main menu. this is showing results in search-results.asp passing a form GET parameter.
But the search is being done on a record field which contains the contents of each page so could be 500-600 words long.
I know how to bind the field in the results page, but what I want is to a)highlight instance(s) of the search word in the returned text and b) trim the binding down so there are just 10-15 words preceding and succeeding the search word, so users dont have to read a whole page of text to see where the instance is of the search word.
DOes anyone have any ideas how this could be relatively simply done, maybe using JS? Or point me in any good directions that don't involve too much complex coding!?