Glimpse HTTP Frequently Asked Questions


  1. How do I modify Glimpse HTTP to jump to the target line in the file?
  2. How do I modify the default search box in my ghindex.html files?
  3. How do I modify Glimpse HTTP to keep HTML tags in my html files?

How do I modify Glimpse HTTP to jump to the target line in the file?

You need to pass the parameter lines=1 to aglimpse through the <FORM> in the specific ghindex.html file.

If you don't understand the above reference to <FORM> tags, please see here for more information on forms.

For more information on how these forms work with the cgi-bin programs, please see here.


How do I modify the default search box in my ghindex.html files?

You need to edit the script ghgenhtml. This script should be in the Glimpse HTTP binary directory. To find this directory (if you didn't install it yourself), type the command:
which ghgenhtml
It should output where the script is located if the paths are set up correctly. (If it does not, contact your system administrator for its location on your system.)

Once you've found ghgenhtml, you need to edit that script to output the correct form. This script is written in Perl; for information on the Perl language, see here. In that script is the output of the search box (it should be obvious which lines to change even to a casual programmer). The search box is simply an HTML table.

Please note: We ask that you keep the reference to Glimpse HTTP somewhere on the search page (preferably in the search box itself).


How do I modify Glimpse HTTP to keep HTML tags in my html files?

There is a parameter near the top of the aglimpse script that looks like:
$SUPPRESS_HTML_TAGS = "\\.s?html?\$";
This variable denotes the types of files that aglimpse will remove HTML tags from. To stop removal of HTML tags, simply comment out this line by adding '#' before it:
# $SUPPRESS_HTML_TAGS = "\\.s?html?\$";

Return to the Glimpse HTTP home page


Maintained by Michael Smith
glimpse@cs.arizona.edu