Home Page

Mac OS 9 Support

These are the things that need to be done to support the Mac OS 9 JVM on your web page (replace yourwebsite with your http address):

  1. Copy japrsmac.jar, japrspngmac.jar, and japrsshpmac.jar to the javAPRS directory on your web site.
  2. Implement the proper code for your type of web page. Each example is put in place of your <APPLET ...> tag and your <param name="cabbase" value=""> tag. Replace "yourwebsite" with the address of your site. Replace the height and width values with appropriate values for your page.

If you want to copy this code to your web page, copy it to a basic text editor such as Notepad or vi then copy it from there to your page. That will remove the formatting information present on this page.

To add Mac support to a standard web page add the following JavaScript code:

<SCRIPT LANGUAGE=javascript>
var codebase="javAPRS";
if (navigator.userAgent.toUpperCase().indexOf("MAC") >= 0 && navigator.userAgent.toUpperCase().indexOf("OS X") < 0 && navigator.userAgent.toUpperCase().indexOf("OSX") < 0)
	document.write("<APPLET codebase=\""+codebase+"\" CODE=\"javAPRS.class\" archive=\"japrsmac.jar\" WIDTH=400 HEIGHT=400>");
	document.write("<APPLET codebase=\""+codebase+"\" CODE=\"javAPRS.class\" archive=\"japrs.jar\" WIDTH=400 HEIGHT=400>");
	document.write("<param name=\"cabbase\" value=\"\">");
// -->
<NOSCRIPT>You must have JavaScript and Java enabled to view this page</NOSCRIPT>

To add Mac support to an Active Server Page add the following VBasic/ASP code:

<% if InStr(UCase(Request.ServerVariables("HTTP_USER_AGENT")),"MAC") > 0 AND InStr(UCase(Request.ServerVariables("HTTP_USER_AGENT")),"OS X") = 0 AND InStr(UCase(Request.ServerVariables("HTTP_USER_AGENT")),"OSX") = 0 then %>
<APPLET codebase="javAPRS" CODE="javAPRS.class" archive="japrsmac.jar" WIDTH=400 HEIGHT=400> 
<% else %>
<APPLET codebase="javAPRS" CODE="javAPRS.class" archive="japrs.jar" WIDTH=400 HEIGHT=400> 
  <PARAM name="cabbase" value="">
<% end if %>

Finally, to add Mac support to a CGI page add the following Perl script:

if ($ENV{'HTTP_USER_AGENT'} =~ /mac/i && $ENV{'HTTP_USER_AGENT'} !~ /os\s?x/i )
	print ("<APPLET codebase=\"javAPRS\" CODE=\"javAPRS.class\" archive=\"japrsmac.jar\" WIDTH=400 HEIGHT=400>\n");
	print ("<APPLET codebase=\"javAPRS\" CODE=\"javAPRS.class\" archive=\"japrs.jar\" WIDTH=400 HEIGHT=400>\n");
	print ("<param name=\"cabbase\" value=\"\">\n");

The Perl script has not been tested but, as far as I can tell, should work.

APRS is a registered trademark of APRS Software and Bob Bruninga, WB4APR.
Copyright © 2017 - Peter Loveall AE5PL
Hosted by AME Corp.