• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Please Help

 
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>
 
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.
 
My first bit of advice is that if you are going to be a mime, you shouldn't talk. Even the tiny ad is nodding:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic