replacement by does not work
Giganews Newsgroups
Subject: <applet> replacement by <object> does not work
Posted by:  Susanne Grabe (sgra…@inf.uni-karlsruhe.com)
Date: 11 Mar 2010

During a re-design of an old web page I replaced the following code:

<applet
    codebase="classes" code=Logo.class
    id=Logo
    width="320"
    height="610">
    <param name=image value="images/logo.jpg">
    <param name=overlay value="images/logosub.gif">
    <param name=href value="target.html">
</applet>

by the following code:

<object src="classes/Logo.class"
    srctype="application/x-java-applet"
    width="320" height="610">
    <param name="image" value="images/logo.jpg">
    <param name="overlay" value="images/logosub.gif">
    <param name="href" value="target.html">
    no java enabled
</object>

While the old web page shows successfully the Java applet the new one does not.

At least not when I drag the html file from WinExplorer onto the Internet Explorer.

Can I define relative class pathes with the <OBJECT> tag at all?

Moreover I found docs which suggest to use:

codetype="application/java" classid="..."

instead of:

src="classes/Logo.class" srctype="application/x-java-applet"

So what is the difference?

Susanne

Replies