<applet> to <object>

They have: 1 posts

Joined: Jan 2006

Hello,

is an older tag which should be replaced by the tag.
I have an java applet which should be loaded by but I fail to make it work for IE. Works on all browsers, except... well, you know it.

This is the code as it was for the It works as well on IE but doesn't validate as XHTML strict, as I said is not a valid tag anymore.

<applet code="IRCApplet.class" archive="irc.jar" width="600" height="550" codebase="http://www.afterworkchat.net/pirc/">
..
params
..
</applet>
'

This is what works too, except for IE.

<object archive="irc.jar" codebase="http://www.afterworkchat.net/pirc/" classid="java:IRCApplet.java" codetype="application/x-java-applet" width="600" height="550">
..
params
..
</object>
'

I found a good explaination of porting a java to an I kinda followed their guide but apparently failed somewhere Smiling

At this link

I also tried nesting two 's as they said on that page, but that resulted into two failing applets in IE. Still working everywhere else.

This is the code of a nested applet, which 'should' make it work on IE too.

<object archive="irc.jar" codebase="http://www.afterworkchat.net/pirc/" classid="java:IRCApplet.java" codetype="application/x-java-applet" width="600" height="550">
..
params
..
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="600" height="550" >
<param name="code" value="IRCApplet" />
..
params
..
</object>
</object>
'

Any help is appreciated.

Thanks a lot,
gOofytj