Adding a Hit-Highlighting Link to a Results Page

Webhits comes with ready-made result page (Query.htx). This result page includes a link to Webhits for each document returned. To add a link to an existing page, modify the .htx file by inserting the following line where you want the link to appear:

<a href="http://<%server_name%><execute-permission vpath/Null.htw>?CiWebhitsFile=<%escapeURL vpath%>& 
CiRestriction=<%escapeURL CiRestriction%>"><b>Highlight Hits</b></a><BR>

Here, server_name is a variable storing the name of the server on which the Web server is located, and CiRestriction is the variable storing the query. You escape the restriction through the EscapeURL keyword, as shown in the sample query.


© 1997 by Microsoft Corporation. All rights reserved.