XHTML and Java

by "John Hornbuckle" <john.hornbuckle(at)taylor.k12.fl.us>

 Date:  Mon, 19 May 2003 15:53:06 -0400
 To:  <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
I'm currently in the process of updating our Web site, and am making all =
of
the new code fully XHTML 1.1 compliant.

This has required me to modify my coding style and to be much more =
diligent
and clean, but I've not run into any real problems until now.

And the problem is, I've got a Java applet that I just can't get to run =
when
using valid XHTML 1.1 code. I can get it to work using this:

<object codetype=3D"application/java" code=3D"WebCam_Viewer.class"  =
width=3D"352"
height=3D"308">
 <p>If you can see this text, then your browser apparently can't run the
necessary Java application.</p>
 <param name=3D"COLOR" value=3D"#FFFFFF" />
 <param name=3D"IMAGE" value=3D"capture0.jpg" />
</object>

The catch is, "code" is no longer valid with XHTML 1.1--so I can't use =
it on
a page I claim to be valid strict XHTML 1.1. I've spent a long time
searching the web trying to figure out the proper way to do this, but
nothing works. I've tried using "classid", "data", and everything else =
I've
seen used in examples. I've also tried using
classid=3D"java:WebCam_Viewer.class", but putting the "java:" in there =
(as
I've seen done in a number of places) doesn't work, either. I've also =
tried
"application/x-java-applet" as the codetype, but that had no effect.

I'm pulling my hair out on this one. Any ideas from anyone who uses Java
applets more than me would be appreciated. I'm sure it's something dumb =
and
simple...


John Hornbuckle
Network Manager
Taylor County School District
318 North Clark Street
Perry, FL 32347

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA