This is intended to fix a long standing
(cough)Java(cou gh) problem with which I'm
sure some of you will be familiar.
Sun recommends using the <OBJECT>/<EMBED>
elements to cater for Java applets, but then
uses *browser* *sniffing* Javascript to select
between them.
I was hoping to find/create a script that
will use feature detection to write the
appropriate tag, but I am stumped as to
how to detect whether to use the OBJECT
element or alternatively (& in actuality)
the original APPLET* element.
* I want to avoid invalid HTML as well,
and the <EMBED> ..thing was never a valid
HTML element, not in any HTML recommendation
I can put my hands on, in any case.
So, my immediate questions are..
Is there a way to detect if a browser will understand
the <OBJECT> element, using Javascript object detection?
How?
BTW.. I was playing with some experiments
on 'nesting' the various elements, using no
Javascript. They were rather unsuccessful,
you can see them here..
<http://www.physci.org/test/appletcall/>
...this post pretty much picks up where the
'conclusion' of that page arrives.
Appreciate any insights.
--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
(cough)Java(cou gh) problem with which I'm
sure some of you will be familiar.
Sun recommends using the <OBJECT>/<EMBED>
elements to cater for Java applets, but then
uses *browser* *sniffing* Javascript to select
between them.
I was hoping to find/create a script that
will use feature detection to write the
appropriate tag, but I am stumped as to
how to detect whether to use the OBJECT
element or alternatively (& in actuality)
the original APPLET* element.
* I want to avoid invalid HTML as well,
and the <EMBED> ..thing was never a valid
HTML element, not in any HTML recommendation
I can put my hands on, in any case.
So, my immediate questions are..
Is there a way to detect if a browser will understand
the <OBJECT> element, using Javascript object detection?
How?
BTW.. I was playing with some experiments
on 'nesting' the various elements, using no
Javascript. They were rather unsuccessful,
you can see them here..
<http://www.physci.org/test/appletcall/>
...this post pretty much picks up where the
'conclusion' of that page arrives.
Appreciate any insights.
--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Comment