Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

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

Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
Where X will be 4 then 5 then 6 ....
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!!!)
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
I've never won anything before. Not even a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic