views:

40

answers:

1

im trying to get from applet to object so i can resolve z-index issues. The first applet tag works...my conversion to object doesn't. Can anyone point me in the right direction?

From:

<applet name='previewersGraph' codebase="http://www.mydomain.info/sub/" archive="TMApplets.jar" code='info.tm.web.applet.PreviewerStatsGraphApplet' width='446' height='291'>
      <param name="background-color" value="#ffffff" />
<param name="border-color" value="#8c8cad" />

To:

<OBJECT id="previewersGraph" name="previewersGraph" classid="clsid:CAFEEFAC-0014-0002-0000-ABCDEFFEDCBA"
width="200" height="200" align="baseline" 
codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2,0"&gt;
<PARAM name="code" value="info.tm.web.applet.PreviewerStatsGraphApplet">
<PARAM name="codebase" value="http://www.mydomain.info/sub/"&gt;
<PARAM name="type" value="application/x-java-applet;jpi-version=1.4.2">
<PARAM name="archive" value="TMApplets.jar">
<PARAM name="scriptable" value="true">
    No Java 2 SDK, Standard Edition v 1.4.2 support for APPLET!!
</OBJECT>
A: 

The HtmlConverter tool in the jdk/bin directory should help you to create the Object tag (at least with an old version of Java). Now Sun (euh Oracle) recommends the applet tag and even jnlp. Look at the deployJava.js script.

I don't think changing it to object will fixed your problem as the applet will be still be paint above the HTML.

Anthony