Re: HTML
On Apr 7, 4:22 pm, "Richard Maher" <maher...@hotspamnotmail.com>
wrote:
<b...@coolgroups.com> wrote in message
news:cbd80cd4-2ab6-47d6-bef8-02676b56d90b@y9g2000yqg.googlegroups.com...
What is the easiest way to generate the HTML for putting an applet on
a web page?
This works for me: -
<script type="text/javascript">
var appletDef = navigator.appName;
if (appletDef == "Microsoft Internet Explorer")
Ask the JS programmers about the evils of browser
sniffing and the virtues of 'feature detection'.
Feature detection makes for more robust, maintainable
scripts.
<Mostly to the OP />
Sun's latest deployJava.js (probably the first good
script to come out of Sun - excepting the one that
changes the JavaDoc page title to name the class) is
a good example of using feature detection, as far as
I recall the script and understand feature detection.
For more information on deployJava.js, see..
<http://java.sun.com/javase/6/docs/technotes/guides/jweb/
deployment_advice.html#deplToolkit>
One thing I especially like about it is that they
actively encourage us to 'hot-link' to the script,
so our sites are always using the latest version of
the script (there were some quirky bugs to it at first,
but I think they have most of those sorted out by now.)
--
Andrew T.
pscode.org