Tag <Object> and Applet...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • M. Magistri

    #1

    Tag <Object> and Applet...

    Hi all!

    Why doesn't the following code load my applet under WinXP with Internet Explorer 6?


    <SCRIPT language="javas cript" type="text/javascript">

    <!--
    if (getBrowser()== "IE"){
    document.write( "<OBJECT standby='Wait maximum 25 seconds to load........' classid='clsid: 8AD9C840-044E- 11D1-B3E9-00805F499D93' WIDTH = '600' HEIGHT = '400' CODEBASE='../Applet/' name='GeoMap'>" ); if (false) document.write( "</OBJECT>");}
    else {
    document.write( "<OBJECT standby='Wait maximum 25 seconds to load........' classid='java:G eoMap.class'
    WIDTH = '600' HEIGHT = '400'
    CODEBASE='../Applet/' name='GeoMap'>" );
    }
    document.write( "<PARAM NAME ='ARCHIVE' VALUE = 'GeoMapJar.zip' > </PARAM>");
    document.write( "<PARAM NAME ='codebase' VALUE = '../Applet/' > </PARAM>");
    document.write( "<PARAM NAME ='code' VALUE = 'GeoMap.class' > </PARAM>");
    ...
    document.write( "</OBJECT>");

    -->
    </SCRIPT>


    It should loads two differents tags. It depends on the Client Browser. Everything goes ok under win2000 and win98, but under WinXP it goes wrong! Why?


    What's the standard <OBJECT> expression to load Applets with JARs archive? What is the best way to load an Applet to make it 100% compatible with all browsers and all Operating Systems?

    Thank You a LOT!!


    Massimiliano from Rome, ITALY
  • Andrew Thompson

    #2
    Re: Tag &lt;Object&g t; and Applet...

    On Fri, 14 May 2004 14:35:16 GMT, M. Magistri wrote:
    [color=blue]
    > What's the standard <OBJECT> expression to
    > load Applets with JARs archive? What is the best
    > way to load an Applet to make it 100% compatible
    > with all browsers and all Operating Systems?[/color]

    There is no guaranteed way, for the
    _best_ way, I prepared the JavaVersionAppl et
    <http://www.physci.org/codes/jre.jsp>

    Toss the <object><embe d> tags and use simple
    <applet> tags (in HTML '4.01 Transitional',
    naturally).

    HTH

    --
    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

    Working...