wood burning stoves 2.0*
The moose likes Applets and the fly likes Changing the param of an applet with XSL or JS ... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Changing the param of an applet with XSL or JS ..." Watch "Changing the param of an applet with XSL or JS ..." New topic
Author

Changing the param of an applet with XSL or JS ...

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I have a html (XSL) page that call an applet.
this applet takes parameters...
(easy for now!)
I need to create params with a incremental variable...
Like that:
<PARAM NAME="NODE1" ...>
<PARAM NAME="NODE2" ...>
<PARAM NAME="NODE3" ...>
<PARAM NAME="NODEX" ...>
Where X will be 4 then 5 then 6 ....
HOW CAN I DO THAT???
I cant use JavaScript because the </script> and I cant refer to my vairable... (I think...) and in my XSL, I cant use <xsl:variable name="myCPT" select="0">
<xsl:variable name="myCPT" select="$myCPT+1">
???
I know that dosent sound clear but i'm not able to tell it more friendly.... hope that you will understand and reply!
Take care
(here it's 25C outside with a beautifull sun! and I had to code inside!!!)
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
You can use JavaScript to build applet parameters, we do it on a project here. What you need to do is build the whole HTML page at runtime using "document.write()" in javaScript. It's clumsy, but it works:


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Changing the param of an applet with XSL or JS ...