| Not Just an Expression…Or, How to Use JavaScript Regular Expressions to Highlight Search Terms in a Domino Web Application
by Rose Kelleher
Topic(s): Application Development, JavaScript, Programming Languages, Web Development
This article includes downloadable files -- see below.
from THE VIEW, May/June 1999
This article shows you how to build a Web application in Domino R4.6 that allows end users to see their search terms highlighted, much the way they would see them in a Notes client. In other words, if a user searches for documents containing the word "viking," and the server responds with a series of links to those documents, the user can click on one of those links, and the word "viking" will be highlighted in red everywhere it appears in the document. Although Domino R5 does highlight search results, R5 developers will still want to read this article to learn how to use JavaScript regular expressions and to see how they can be combined with other advanced JavaScript methods. |