RE: XHTML and Java

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

 Date:  Wed, 21 May 2003 11:33:18 -0400
 To:  <hwg-techniques(at)hwg.org>
 In-Reply-To:  co
  todo: View Thread, Original
Been there, tried that. Here it is:

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

On MSIE 6, this doesn't work. The applet loads, but (A.) isn't sized
correctly and (B.) doesn't show the images. The code I used on that page =
is:

    <object codetype=3D"application/java" standby=3D"Please wait while =
the
application loads..." classid=3D"java: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>

I've tried classid both with and without the "java:" as part of the =
address.
Without putting it in, the applet doesn't load at all in MSIE6. Here's a
sample:

http://www.taylor.k12.fl.us/district/webcams/noc/index.classid.nojava.htm=
l

The working (but non-XHTML 1.1-compliant) version, for reference, is =
here:

http://www.taylor.k12.fl.us/district/webcams/noc/


John=20


-----Original Message-----
From: owner-hwg-techniques(at)hwg.org [mailto:owner-hwg-techniques(at)hwg.org] =
On
Behalf Of Richard Lake
Sent: Tuesday, May 20, 2003 3:00 PM
To: John Hornbuckle; hwg-techniques(at)hwg.org

> But "code" isn't a valid parameter in XHTML 1.0 Strict or XHTML 1.1...

John,

I've found a reference to <applet> being deprecated and replaced by =
<object>
though the reference also states that as at 2001 <object> was not fully
supported by all browsers.

The syntax listed is:

  <object classid=3D"URL of object"
     height=3D"pixels"
     width=3D"pixels">

Hope that helps.


Richard

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