Win a copy of Grokking Bitcoin this week in the Cloud/Virtualization forum!
  • 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
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

Applet parameter  RSS feed

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to pass the content of a variable of Javascript to the applet parameter. I am using VALUE=&{variable}, but the Java program receives the string "&v(variable}", but not the content of the variable. I do not know how solve this problem.

Can somebody help me?

Bellow the code

<APPLET ARCHIVE="InJava.jar, NBioBSPJNI.jar"
CODE="InJava.class"
NAME="myApplet"
HEIGHT=100 WIDTH=800>
<PARAM NAME="parametro" VALUE="${parametro}">
</APPLET>
 
Rancher
Posts: 42974
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Not sure where you got the "${...}" and "&{...}" notations from - neither HTML nor JavaScript has such a mechanism. One approach would be to construct the APPLET tag on the fly in JavaScript code; that would let you use any JavaScript variable you want. This would involve a more elaborate version of the following:

Also, you most likely would not want to append at the end of the document, but somewhere in the middle.
 
Enjoy the full beauty of the english language. Embedded in this tiny ad:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!