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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
  • 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

<PARAM NAME="parametro" VALUE="${parametro}">
Posts: 42974
  • 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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!