B
Blondie21
Hi,
I have a .jsp file in the following format:
.... html headers, jsp code, html code...
<jsplugin
type="applet"
code="path.in.packet.appletclassname.class"
codebase=".."
jreversion="1.5"
archive="packetname.jar"
height="0"
width="0"
name="appletname"<jsp:fallback>
<p>Unable to start the applet.</p>
</jsp:fallback>
</jsplugin>
.... html code...
<script type="text/javascript">
var theApplet = document.applets.appletname;
methodOutput = theApplet.callmethod();
document.write(methodOutput);
</script>
.... the rest of the html code ...
Javascript can call this method with IE 6.0, but with Firefox I get the
following message: "Error: theApplet has no properties".
And here is how Firefox and IE6.0 translate my <jsplugin> tag:
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
name="appletname"
width="0" height="0"
codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0">;
<PARAM name="java_code" value="path.in.packet.appletclassname.class">
<PARAM name="java_codebase" value="..">
<PARAM name="java_archive" value="packetname.jar">
<PARAM name="type" value="application/x-java-applet;version=1.5">
<COMMENT>
<EMBED type="application/x-java-applet;version=1.5" name="appletname"
width="0"
height="0" pluginspage="http://java.sun.com/products/plugin/";
java_code="path.in.packet.appletclassname.class"
java_codebase=".."
java_archive="packetname.jar"
clientLocale="en_IE">
<NOEMBED>
</COMMENT>
<p>Unable to start the applet.</p>
</NOEMBED></EMBED>
</OBJECT>
I have already tried other solutions, like
document.getElementsByName() and
document.embeds ( as well as document.getElementsByID, but this could
never work with Firefox as, from what I found in google, Firefox does
not assume that applet name = applet id, what IE does).
Still, I never managed to call this method with Firefox.
Would anyone have any other ideas?
Thank you,
Blondie
I have a .jsp file in the following format:
.... html headers, jsp code, html code...
<jsplugin
type="applet"
code="path.in.packet.appletclassname.class"
codebase=".."
jreversion="1.5"
archive="packetname.jar"
height="0"
width="0"
name="appletname"<jsp:fallback>
<p>Unable to start the applet.</p>
</jsp:fallback>
</jsplugin>
.... html code...
<script type="text/javascript">
var theApplet = document.applets.appletname;
methodOutput = theApplet.callmethod();
document.write(methodOutput);
</script>
.... the rest of the html code ...
Javascript can call this method with IE 6.0, but with Firefox I get the
following message: "Error: theApplet has no properties".
And here is how Firefox and IE6.0 translate my <jsplugin> tag:
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
name="appletname"
width="0" height="0"
codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0">;
<PARAM name="java_code" value="path.in.packet.appletclassname.class">
<PARAM name="java_codebase" value="..">
<PARAM name="java_archive" value="packetname.jar">
<PARAM name="type" value="application/x-java-applet;version=1.5">
<COMMENT>
<EMBED type="application/x-java-applet;version=1.5" name="appletname"
width="0"
height="0" pluginspage="http://java.sun.com/products/plugin/";
java_code="path.in.packet.appletclassname.class"
java_codebase=".."
java_archive="packetname.jar"
clientLocale="en_IE">
<NOEMBED>
</COMMENT>
<p>Unable to start the applet.</p>
</NOEMBED></EMBED>
</OBJECT>
I have already tried other solutions, like
document.getElementsByName() and
document.embeds ( as well as document.getElementsByID, but this could
never work with Firefox as, from what I found in google, Firefox does
not assume that applet name = applet id, what IE does).
Still, I never managed to call this method with Firefox.
Would anyone have any other ideas?
Thank you,
Blondie