I wonder if anyone on this list can identify the mistake I'm making
with Safari and object markup. I posted to the mac webdev list a
couple of weeks ago as I thought it more appropriate, but got no
response:
I thought I'd sussed out Safari applets and object markup. For
example, with a simple applet with no params the markup:
<object
classid="java:BugView"
type="application/x-java-applet"
codebase ="pox"
archive = "BugView.jar"
width="640" height="500">
<PARAM NAME="progressbar" VALUE="true">
<PARAM NAME ="data1" VALUE="pox/NC_001559.gda">
<PARAM NAME ="sequence1" VALUE="pox/NC_001559.seq">
<PARAM NAME ="data2" VALUE="pox/NC_001611.gda">
<PARAM NAME ="sequence2" VALUE="pox/NC_001611.seq">
<PARAM NAME ="comparison" VALUE="pox/NC_001559-NC_001611.gcf">
You need Java to view this applet.
</object>
I get the message Applet BugView not inited, and the progress bar
says "Loading Java Applet failed". The same page works on Firefox,
iCab and Opera.
It also works on Safari with the applet tag:
<applet
codebase ="pox"
code="BugView.class"
archive = "BugView.jar"
width="640" height="500">
<PARAM NAME="progressbar" VALUE="true">
<PARAM NAME ="data1" VALUE="pox/NC_001559.gda">
<PARAM NAME ="sequence1" VALUE="pox/NC_001559.seq">
<PARAM NAME ="data2" VALUE="pox/NC_001611.gda">
<PARAM NAME ="sequence2" VALUE="pox/NC_001611.seq">
<PARAM NAME ="comparison" VALUE="pox/NC_001559-NC_001611.gcf">
You need Java to view this applet.
</applet>
The page validates HTML 4.01 strict. I was using OS X 10.4.3 with
Safari 2.0.2 (416.13) on two separate machines in two different
locations. (Same failure with OS X 10.4.4 and Safari 2.0.3)
Omniweb loads the applet but not the referenced data, and Shiira
behaves like Safari. Looks as if it's a problem specific for the
Safari-type engine.
The applet (BugView.jar) is in a directory named 'pox' at the same
level as the page referencing it, and the various files referenced
(all plain text) are within this.