NavSearch can be completely customized to suit your particular needs. This section helps you modify the HTML output from the search query, and customize NavSearch for your distribution needs.
The easiest way to integrate NavSearch with your HTML files (including frames) is to call NavSearch as a local cgi script (similar to online cgi-bin scripts). This requires Localhost Mode which is fully available to registered users of NavSearch distribution license.Other methods of linking NavSearch to your HTML files are listed below:
To show the results of a search query within frames:
frame src=result000.htm .
Once the above is done, NavSearch will copy the frame directory to the location when it stores result000.htm, and then tell the browser to load the frame file with the results displayed within that frame.
To refer to files outside of the frame directory, use:
frame src=file:///c|[filename]
where file:///c| will be automatically replaced by the drive letter from where NavSearch is running.
The results of the search will be output to result000.htm, result001.htm resultnnn.htm. This allows you to use the Back and Forward buttons to browse the search history. If you choose not to save search histories, the results will always be saved to result000.htm.
You can also direct the target window of the search by using the Result Link option under the Advanced Options window. This allows you to open the search query in a new window. NavSearch outputs its results to a file called result000.htm in the Windows default temporary directory.
Changing Attributes in result000.htm
You can define a custom background and font for displaying your search query by editing the <body> HTML tag in the header.htm file.
NavSearch can be seamlessly integrated with your existing HTML files. A user viewing an HTML may start NavSearch by simply clicking on a hyperlink, allowing them to search pre-assigned documents. This feature is particularly useful to CD-ROM publishers or Intranet developers.
To take advantage of this, NavSearch must be setup as a helper application:
<A HREF="temp.lsrh">Click here to search documents</A> .
You will need to create a file called temp.lsrh in the same directory as the HTML file, but since its content is never used, this file may be left empty.
Netscape users can also use NavSearch as a helper application by:
Going to Options, General Options, Helpers, and defining NavSearch as the helper application for *.lsrh document types.
Internet Explorer users can setup a helper application by:
Going to View, Options, Program (tab), File Types, New Type, and selecting NavSearch as the helper application for *.lsrh document types.
You can pass search results to the browser using several different methods. You can access all of the modes under the Help menu, and by selecting Internet Explorer.
Window and DDE Mode: This uses the standard Windows method to pass files to the browser. Since different versions of Windows behave in different manners with browsers, these two methods allow the simplest and most direct method of passing search results. This will pass results to the entire browser window, and does not allow targeting. This is recommended if you are using NavSearch to search local files only, and have no need to integrate with existing HTML.
JavaScript Mode: The JavaScript method allows you to define the target frame you want to pass results to (you can specify the target by using the Result Window option under Advanced Options. Be aware that this option will work only if Internet Explorer allows JavaScripting. If you call NavSearch within HTML files, you must set up NavSearch as a helper application (as detailed above).
NavSearch's LocalHost mode allows it's powerful search features to be seamlessly integrated into all of your applications. Users who wish to find a specific topic of interest will be able to do so quickly and efficiently.
LocalHost mode is available for registered users of a distribution license only. This option is accessible under Advanced Options, Set LocalHost On. This will allow you to call navsrh from your HTML forms, which behaves as if you were calling a CGI script.
For registered users of a distribution license, you can also use the command-line option:
navsrh.exe -Setlocal:[Filename]
where [filename] is the name of the HTML file you want to open upon launching NavSearch. To see the search form, type:
in your browser. You can also use your own search form by going to Index and selecting Generate Search Form to create a search template with the features you desire. You may also edit the form to incorporate the HTML features you desire.
Compact mode can be switched on or off via the View menu. Switching compact mode off will prevent the search window from automatically shrinking to a small search box.