G4ZFE Log Search Applet - How to use the applet
How to use the applet
An example will be used to demonstrate how to use the applet. The example is for G4ZFE, with a web site
URL of www.myisp.co.uk/~g4zfe, and logs for
- 1997 Maldives DX-pedition;
- 1997 IARU contest;
- 1997 Field Day;
- Download a copy of the applet and sortlog program and unzip the
search.class applet file.
- Create a HTML page for the search applet, say
g4zfe_search.html
In its basic form the page would like this:
<HTML>
<HEAD>
<TITLE>G4ZFE Log Search Page</TITLE>
</HEAD>
<H1>G4ZFE Log Search Page </H1>
Please use this applet to search the logs of my latest DX-peditions
and contest logs.
<P>
<APPLET CODE="search.class" WIDTH=600 HEIGHT=325>
<param name="log1Name" value="1997 8Q7FE">
<param name="log2Name" value="1997 IARU">
<param name="log3Name" value="1997 Field Day">
<param name="URL1Name" value="http://www.myisp.co.uk/~g4zfe/logs/8Q7FE/">
<param name="URL2Name" value="http://www.myisp.co.uk/~g4zfe/logs/97iaru/">
<param name="URL3Name" value="http://www.myisp.co.uk/~g4zfe/logs/97fd/">
<EM> Sorry but the search applet requires a java aware browser.</EM>
</APPLET>
</HTML>
|
Notes:
1. The parameters "log1Name" to "log3Name" are used to name
the checkboxes in the GUI. There can currently be a maximum
of 6 such checkboxes in this applet.
2. The parameters "URL1Name" to "URL3Name" specify the location
on the server where each of the logs are to be found. Note
in this case a directory "logs" has been created with a
sub-directory (e.g "97iaru") for each of the log files. Note
that the "/" character at the end of the URL is required.
- Upload the followiung files to your web site in binary mode:
- g4zfe_search.html;
- search.class;
The above files should be in the same directory on your web site.
- Create a directory called "logs" on your web server. Under the "logs" directory create four
sub-directories - "8Q7FE", "97iaru" and "97fd". Note that the directory names are
(usually) case sensitive.
- Convert the 8Q7FE logs (in the file "8Q7FE.log"). For example, at the DOS prompt type
"sortlog 8Q7FE.log". 36 files ('A.TXT' to 'Z.TXT' and '0.TXT' to '9.TXT') will be created.
- Upload the created .TXT files to the "logs/8Q7FE" directory on the server. Ensure that the filenames stored are either all lowercase or all uppercase and not a mix.
(Tip:if you are using a command line FTP client program type "prompt y" and then "mput *.TXT" to
automate the process).
- Repeat the above two steps for the 97iaru and 97fd logs.
- Test the applet on-line.
Applet parameters
- wildcards. Default=true.
true: allow wildcards (e.g G4*) to be used as a callsign;
false: do not allow wildcards (e.g G4*) to be used as a callsign.
e.g. <param name="wildcards" value="false">
- multiLog. Default=false.
true: display the log name with each QSO found (useful when the applet is used with several logs);
false: do not display the log name with each QSO.
e.g. <param name="multiLog" value="true">
- debug. Default=false.
true: display debug information in the Java Log console;
false: display no debug information.
e.g. <param name="debug" value="true">
- appletFontName. Default=Helevtica
Font name to be used for applet text on buttons and checkboxes.
e.g. <param name="appletFontName" value="TimesRoman">
- resultFontName. Default=Courier
Font name to be used to display search results.
e.g. <param name="resultFontName" value="TimesRoman">
- resultFontSize. Default=12
Font size to be used to display search results.
e.g. <param name="resultFontSize" value="10">
- searchAllLogs. Default=false.
true: allow all logs to be searched at once. Individual checkboxes for each log are not displayed;
false: search one log at a time. Individual checkboxes for each log are displayed;
e.g. <param name="searchAllLogs" value="true">
< Return to G4ZFE