
Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
: >http://ww2.cs.fsu.edu/~steele/XHTML/appletObject.html
:
[quoted text clipped - 6 lines]
: height=300
: width=450
I did say it may or may not help you, but in my case I use the simplest form (almost same length as
the standard applet tag) so that myApplet.class will also work in IE.
.k
>>http://ww2.cs.fsu.edu/~steele/XHTML/appletObject.html
>
[quoted text clipped - 44 lines]
> </object>
> <!--<![endif]-->
To be fair, the second version provides additional information over the
former, and is also more general (in theory).
The first method uses a very specific tag, applet, and gives a reference
to the applet ot run, as well as the dimensions the applet should take up.
The second uses a more generic tag, object, that can load any plug-in
content (e.g. Flash, Quicktime movies, Java applets, activeX controls,
etc.). It provides a path to the file the plugin should download to render
the content, and the dimensions it should be rendered in.
Since multiple plugins may share a given file extension, it provides
something like a MIME Type (application/x-java-applet). In case there are
multiple, conflicting plugins which can handle the same mimetype, a
preferred plugin is given via a universally unique identifier
("clsid:8AD9C840-044E-11D1-B3E9-00805F499D93").
Furthermore, if the user does not have a plugin capable of rendering the
content, a link to a location where the plugin may be automatically
downloaded and installed is provided.
And failling the automated download, a completely customizeable an
alternative content can be provided to the user.
IMHO, the concept behind the second approach is good, but the
executation was poor.
- Oliver
Shayne Steele - 17 Jan 2006 18:29 GMT
> IMHO, the concept behind the second approach is good, but the
> executation was poor.
>
> - Oliver
Well...mighty opinionated aren't we :-) If you can do better, please
do. I spent a long time coming up with that solution, it works on ALL
the browsers and java plugin I have tried it on AND it allows for
graceful failure. Please feel free to show a better solution that uses
the "object" tag, and is valid XHTML, and works on all browsers and
plugins, and allows for graceful failure.
Shayne
Oliver Wong - 18 Jan 2006 15:27 GMT
>> IMHO, the concept behind the second approach is good, but the
>> executation was poor.
[quoted text clipped - 7 lines]
> "object" tag, and is valid XHTML, and works on all browsers and plugins,
> and allows for graceful failure.
When I said "the second approach", I mean "Microsoft's approach". I.e. I
was referring to the concept of having a single tag to represent an embedded
object which gives a pointer to the plugin which can render that object.
This is in contrast to the approach of inventing a new tag for every
possible embeddable object (e.g. "<applet>", "<flash>", "<midi>", "<svg>",
"<mathml>", etc.) and having the browser simply ignore tags it doesn't
recognize.
I didn't mean your XHTML code.
- Oliver
Shayne Steele - 18 Jan 2006 20:32 GMT
>>> IMHO, the concept behind the second approach is good, but the
>>>executation was poor.
[quoted text clipped - 20 lines]
>
> - Oliver
OK, sorry about that misunderstanding.
The problem is that the committee that decided to get rid of the applet
tag in favor of the object tag never gave real world working examples of
how to replace the applet tag with an object tag. It took me a long
time to figure out how to do it so it works on all browsers/plugins
(that I have tried).