• 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
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Applet parameter  RSS feed

 
Fernando Skackauskas
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>
 
Ulf Dittmer
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.
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!