Re: Cross-browser applet tags?

From: evadnikufesin (evadnikufesin_at_gmail.fuckspam.com)
Date: 01/30/05


Date: 30 Jan 2005 15:04:15 GMT

jgenyuk wrote:

> Can anyone point me to a resource about what HTML tags to use for
> applets to make it load properly in all recent browsers? I tried
> <applet> and HTMLConverter which gave me <object>...<embed>, but the
> first didn't work for IE with Microsoft JVM, and the second forced
> some users to download a plugin.
>
> Is there a good discussion anywhere at all about cross-browser issues?
> Everything I found by Google so far, looks outdated. We have a wide
> variety of users and I cannot possibly test applets in all
> configurations. Thanks.

You're not going to find a truly cross-browser-capable approach outside
of the <APPLET>. In that case if you applet isn't compatible with the
VM that's in the browser of for that user - they're stuck. The MS JVM
is based on JDK 1.1.8 (with some 'extensions'). So if you try to
create an applet for use with JDK 5, it'll never work. The client
would have to download the latest Sun JDK and configure it to work
with the web browser they are using.

The reason that you are seeing "outdated" discussions on google is
because these issues haven't changed since the Java Plug-In was
released. If Microsoft was *smart* they'd just put the Java Plug-In
into XP and call it done - telling their current VM users to upgrade
their code accordingly. But they're more interested in market
dominance than in customer satisfaction.

But I digress...

Use the <embed> tag and if a customer needs the newer JVM, they'll be
prompted to install it. If they already *have* it, the browser will
merely switch to that VM and your applet will run.

-- 
Farewell from the Usenet AOL - You will NOT be missed.


Relevant Pages

  • Re: Java Timer, swing
    ... I visit a page with an applet and my Celeron 1.7GH ... skip/stall, my mouse to skip, etc, with the Microsoft JVM I barely ... not due to any "Java destroying proprietary feature" the ...
    (comp.lang.java.programmer)
  • Re: IIS returns HTTP error 500 for some image files
    ... The applet experiences this problem whenever it uses the latest Sun JVM, ... regardless of browser. ... retrieve a very simple ASP document from the web servers on occasion. ...
    (microsoft.public.inetserver.iis)
  • Re: JVM question
    ... I need to know how a browser open an applet, or, better, how a browser ... giving the applet itself to the JVM. ... Open the Java control panel and select the 'Java' tab. ...
    (comp.lang.java.machine)
  • Re: browser screen capture with java applet
    ... the applet would be to do the job of the actual image capturing on each ... current browser window - if that's relevant. ... minimum Java version. ...
    (comp.lang.java.programmer)
  • Re: JavaScript not being blocked/synched by Applet init()
    ... Applet, I am more than a tad concerned about developments. ... browser = JSObject.getWindow;} ... var lclNum; ... lclNum = chan.getNum; ...
    (comp.lang.java.programmer)