Re: XHTML and Java

by "Donna Smillie" <dms(at)zetnet.co.uk>

 Date:  Tue, 20 May 2003 23:59:19 +0100
 To:  <hwg-techniques(at)hwg.org>
 Cc:  "John Hornbuckle" <john.hornbuckle(at)taylor.k12.fl.us>
 References:  fl
  todo: View Thread, Original
Hi John

Following suggestions are complete "stab in the dark" stuff, but offered
here in case they are worth considering, and you haven't already tried them
:

The XHTML 1.0 DTD, in reference to the OBJECT element, specifies that PARAM
elements should precede any other content.

"object is used to embed objects as part of HTML pages.
param elements should precede other content."

Might be worth positioning the PARAM elements before the alternative text,
just in case that makes a difference?

And then, one of the examples of using OBJECT given in the HTML 4.01 spec is
as follows:

<.object codetype="application/java-archive"
     classid="java:program.start"
     codebase="http://foooo.bar.com/java/myimplementation/">
params and other stuff here...
</object>

Just wondered if you'd tried using all three elements shown here, including
CODEBASE?

Regards,
Donna

----- Original Message -----
From: "John Hornbuckle" <john.hornbuckle(at)taylor.k12.fl.us>
To: <hwg-techniques(at)hwg.org>
Sent: Monday, May 19, 2003 8:53 PM
Subject: XHTML and Java


> 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="application/java" code="WebCam_Viewer.class"
width="352"
> height="308">
>  <p>If you can see this text, then your browser apparently can't run the
> necessary Java application.</p>
>  <param name="COLOR" value="#FFFFFF" />
>  <param name="IMAGE" value="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="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

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.