Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Passing javascript variable to XSL

    Hi,
    I have a requirement where i need to pass the javascript variable to XSL which actually calls a java method(the javascript var is parameter to this method)
    Eg:
    function xx(a) {
    var x =Value selected from the dropdown box (a here)
    <xsl:variable name="aa" select="xx:javamethod(javascript var x): />

    if i simple pass x to the method,the value in x is not passed instead the value X itself is passed
    Pls help me how to achieve this..
    Thanks in advance

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Not possible as XSL is executed first to transform XML into HTML document that may contain Javascript. Just submit the page and call the java method passing the selected item.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •