The AdvSiteSearcher applet provides your visitors with a simple way of searching your site. In addition to using a faster search method than its predecessor (SiteSearcher), the applet is also more safely threaded and caches a portion of each page to avoid the overhead of new connections (if possible).
The August 15, 2001 release adds two parameters: show_date
and show_file_size
. If show_date
is set to "false", the applet
not display a file's last modification date in the search results. If show_file_size
is set to "false", the applet will not display files' file sizes.
The August 18, 2000 release fixes a bug in the documentation. In the code to paste (see below), the code attribute of the applet tag was set to "SiteSearcher.class" rather than "AdvSiteSearcher.class" (or "AdvSiteSearcher").
This applet is distributed as linkware.
AdvSiteSearcher uses only the methods of JDK 1.02 so it should run under all "Java-enabled" browsers. The source code has been included with this distribution of the applet. Send your questions about the source to gilbertnews@hotmail.com.
This version of AdvSiteSearcher does not support Boolean expressions or wild card searches (though these features are still being investigated). If you experience any problems or have suggestions, please e-mail gilbertnews@hotmail.com. The AdvSiteSearcher applet is distributed without and warranty or guarranty. Use it at your own risk.
There is a bug in Netscape's Java implementation that will cause a crash if a user clicks in an empty list. AdvSiteSearcher avoids this problem by always adding an extra entry to the top of the search results.
Contact: David Faden <gilbertnews@hotmail.com>
One or both of,
files: list of files (separated by commas or spaces) to be searched.
dirs: list of directories (separated by commas or spaces), whose contents are to be searched.
cachesize: how much of each page searched is to be cached for the next search. Set the cachesize to zero or less for no caching...(The default size is 2000 characters.)
startwords: text to be displayed in the search box when the applet is first displayed.
show_date: controls whether a file's modification date is displayed in the search results list. This parameter defaults to "true".
show_file_size: controls whether a file's size is displayed in the search results list. This parameter defaults to "true".
bgcolor: the background color of the applet.
fgcolor: the foreground (text of labels) color.
bordercolor: the color of the border around the applet.
(Some platforms (like the Mac's MRJ) do not allow you to set the of some native components.)
buttonbgcolor: the background color of the buttons.
buttonfgcolor: the foreground color of the buttons.
checkboxbgcolor: the background color of the checkboxes. (This effect varies across platforms.)
checkboxfgcolor: the foreground color of the checkboxes. (This effect varies across platforms.)
searchboxbgcolor: the background color of the search box.
searchboxfgcolor: the foreground color of the search box.
pbaroncolor: the color of the part of the progressbar showing progress.
pbaroffcolor: the background/border color of the progressbar.
listbgcolor: the background color of the list.
listfgcolor: the foreground color of the list.
searchbox_label_txt: the text next to the search box.
search_btn_txt: the text of the button that starts a search.
stop_btn_txt: the text of the button used to stop a search.
exact_chkbx_txt: the text of the check box used to specify exact matches only.
xhtml_chkbx_txt: the text of the check box used to specify whether HTML should be ignored.
pbar_msg_txt: the message displayed in the progressbar.
The following colors are available by name: black, green, blue, darkblue, lightblue, cyan, darkgray, gray, lightgray, magenta, orange, pink, red, white, and yellow.
If the SecurityManager allows it, you may also try to get System (property) defined colors.
Colors may also be defined as hexadecimal strings beginning with "#" as in HTML. (For example, red would be #ff0000.)
Have fun!
The Gilbert Post is an independent student (infrequently updated) paper serving Gilbert High School of Gilbert, Iowa, and the world (ha). It was founded because at the time (and at present) there was no official school paper, a chasm that needed to be filled. By adding the AdvSiteSearcher and a link to us to your page, you are giving The Gilbert Post a real boost. Thank you.