RE: XHTML and Java

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

 Date:  Wed, 21 May 2003 11:48:08 -0400
 To:  <hwg-techniques(at)hwg.org>
 In-Reply-To:  7MZCL0J
  todo: View Thread, Original
Here's my implementation of your suggestions:

http://www.taylor.k12.fl.us/district/webcams/noc/index.donnas.way.html

Viewing this page with MSIE, the applet loads but is not sized =
correctly,
not does it actually work (it doesn't display the images).

Sigh.


John=20


-----Original Message-----
From: owner-hwg-techniques(at)hwg.org [mailto:owner-hwg-techniques(at)hwg.org] =
On
Behalf Of Donna Smillie
Sent: Tuesday, May 20, 2003 6:59 PM
To: hwg-techniques(at)hwg.org
Cc: John Hornbuckle

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=3D"application/java-archive"
     classid=3D"java:program.start"
     codebase=3D"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=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