• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please Help

 
Chi Tang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All:
I am trying to use the java script to embed a applet on the html
page then I also need to pass some of the parameter from the html page into this applet.
The applet shows up but it can't get the parameter passed
by the java script. I am using the
JDK1.3
I know we can't longer use the applet tag to pass the parameter
and we need to use java plugin.However, after reading sun's documentation. I still don't understand how to use the java plugin to pass the parameter. Can You guy give me some example
Thanks a lot
cftang@ptc.com
<APPLET CODE="wt/boot/BootstrapApplet.class ARCHIVE=wt/security/security.jar WIDTH=\"500\" HEIGHT=300>
<PARAM NAME=boot_jar VALUE=wt.jar>
<PARAM NAME=boot_class VALUE=ext.spgg.doc.kwcommondoc.ContentApplet>
<PARAM NAME=cabinets value=\"wt/security/security.cab>
</APPLET>
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chi,
To use the plug-in you need to use the EMBED HTML tag for Netscape and the OBJECT HTML tag for IE. The OBJECT tag is almost identical to the APPLET tag.
This might be your code for IE:
< OBJECT
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width=500 height=300
codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0" >
< PARAM NAME=boot_jar VALUE=wt.jar>
< PARAM NAME=boot_class VALUE=ext.spgg.doc.kwcommondoc.ContentApplet>
< PARAM NAME=cabinets value=\"wt/security/security.cab>
< /OBJECT >
For Netscape it gets a little tricky, but still not tough:
< EMBED TYPE="application/x-java-applet;version=1.3"
WIDTH=500 HEIGHT=500
pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"
boot_jar="wt.jar"
boot_class="ext.spgg.doc.kwcommondoc.ContentApplet"
cabinets="wt/security/security.cab" >
< /EMBED >
Look here for a great explanation with examples:
http://java.sun.com/products/plugin/1.3/docs/tags.html
Regards,
Manfred.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic