Lundin Site Search Applet version 1.1
Author: Patrik Lundin, patrik.lundin@ebox.tninet.se
Description
The Applet
Usage
Parameters
Important Notes
Trouble Shooting
License
Description :
This applet searches a website for keywords by parsing and following links on the site.
Write search words in the search field, separate several search words with a colon or space,
press search. When the applet indicates it is finished ( look at the top of the applet )
double click on any of the links to go to that page.
You can test search any word or phrase on this page.
Usage :

Copy the class file Search.class into your webdirectory and then
put an applet tag like this one on your page :

<APPLET CODE="Search.class" WIDTH=325 HEIGHT=171>
<param name=firstpage value=index.html>
<param name=targetname value="_top">
<param name=maxhits value=20>
</APPLET>

Parameters :

None of these parameters are required.
If you don't specify parameters then default values will be used.

All parameters are set by inserting a param tag within the applet
tags, se the example of the applet tag above.

firstpage
the page to start to search from, default index.html
this page should contain links to all other pages since
the applet searches by extracting links.

targetname
the target for where search results should be loaded in
default is the top window "_top"

maxhits
the maximum number of hits, default 20.

nofollow
If set to true only the pages specified in the firstpage
will be searched, no other links will be followed. Default false.

linksonly
If set to true only the url's of the pages that matched
the search will be shown instead of the page title.

labelfg
Top label foreground as hexadecimal value, default ffffff ( white )

labelbg
Top label background as hexadecimal value, default 0000ff ( blue )

appletbg
Main applet background as hexadecimal value, default 008080 ( darkgreen )

textfieldbg
Texfield background as hexadecimal value, default 00a880 ( green )

textfieldfg
Textfield foreground as hexadecimal value, default 000000 ( black )

checkboxbg
Checkbox background as hexadecimal value, default 008080 ( darkgreen )

checkboxfg
Checkbox foreground as hexadecimal value, default 000000 ( black )

buttonbg
Button background as hexadecimal value, default cccccc ( lightGray )

buttonfg
Button foreground as hexadecimal value, default 0000ff ( blue )

listbg
List background as hexadecimal value, default cccccc ( lightGray )

listfg
List foreground as hexadecimal value, default 0000ff ( blue )

Important Notes :
For security reasons a Java Applet can only make connections back to it's own origin
therefore links outside the domain the applet resides on will not be searched.

The applet has not been tested through a firewall.

Trouble Shooting :
Some of these errors are shown on the statusbar in
Netscape and in InternetExplorer.

The browser gives a "Class not found error"
Make sure the class is in the right directory, should be the
same directory as the page containing the applet tag.

The browser says something like "Class Format Error: bad magic number"
The class file is corrupted, probably because it was uploaded through ftp
as an ascii file. Make sure you upload the class file as a binary file.

The applet doesn't seem to follow links
Make sure the "firstpage" parameter points to a file containing the
links you want the applet to follow. Note that the applet doesn't follow
external links ( links outside the domain where the applet resides )

The applet doesn't seem to follow links when it is run
locally on my harddrive or cd-rom

Make sure the applet is in the root of the files it should search
also make sure the "firstpage" parameter points to a file with links in it,
this file should also be in the root of the files it links to.

When I change a parameter the applet doesn't seem to care
Not all browsers let you change the parameters when the applet already is started,
restart your browser to make it reflect the changes.

I changed a page but I can't seem to search for the changes
The browser has probably cached your page, restart the browser or
clear the cache if possible in your browser. You might also want to check
the cache settings in your browser.

 
License:
Free for private non-commercial use.
Companys and organizations must pay $20 USD or 160 SEK after 10 days trial.
Mail me for payment instructions, patrik.lundin@ebox.tninet.se
thoose who pay the license fee will be notified of changes, new releases and fixes.
Fixes will be available to paying customers for free, new versions will
be available to discount prices.