R
Red Winestain
I've been asked to update some web pages to XHTML 1.0 strict so that it
validates via the w3c validator. This means I need to replace the
<applet> tags with <object>. How do you use an object tag to load a
java applet that lives elsewhere on the server?
For example, I used to use the following (for a class, not a jar):
<applet codebase="../classes/" code=AppletCode width=500 height=190>
<param name="variable" value="1">
Your browser does not have Java enabled.
</applet>
I've got the following to work (validate and load the applet) but only
if the html page is in the same directory as the applet:
<object
type="application/x-java-applet"
classid="java:AppletCode.class"
height="500" width="190" >
<param name="varialbe" value="1" />
Your browser does not have Java enabled.
</object>
I can't get any form of the codebase statement to work. Any suggestions?
validates via the w3c validator. This means I need to replace the
<applet> tags with <object>. How do you use an object tag to load a
java applet that lives elsewhere on the server?
For example, I used to use the following (for a class, not a jar):
<applet codebase="../classes/" code=AppletCode width=500 height=190>
<param name="variable" value="1">
Your browser does not have Java enabled.
</applet>
I've got the following to work (validate and load the applet) but only
if the html page is in the same directory as the applet:
<object
type="application/x-java-applet"
classid="java:AppletCode.class"
height="500" width="190" >
<param name="varialbe" value="1" />
Your browser does not have Java enabled.
</object>
I can't get any form of the codebase statement to work. Any suggestions?