Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Safari applet problem with object tag



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:TrivialAppletArch14"
	type="application/x-java-applet"
      	archive="TrivialApplet14.jar"
	width ="200" height ="200">
    </object>

works fine.

However with a more complex one with params:

    <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.

Anyone able to shed light on this?

David

PS the urls are:

<Applet>: <http://doolittle.ibls.gla.ac.uk/leader/BugView/bvapplet.html>
<Object>: <http://doolittle.ibls.gla.ac.uk/leader/BugView/bvappletObj.html>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.