XSL + JavaScript

Discussion in 'XML' started by wharfprada, Aug 3, 2004.

  1. wharfprada

    wharfprada Guest

    does anyone know how to do this :
    I want to be able to pass a variable set in JavaScript to an XS
    variable.
    I have :
    <script ipt language="javascript">

    var currentPage =0;
    function OnSubmitForm(ev)
    {
    if(ev.name == 'Next')
    {
    alert("I am here in Next");
    currentPage++;
    }
    else if(ev.name == 'Prev')
    {
    alert("I am here in Prev");
    currentPage--;
    }
    else {

    alert(this.name);
    }
    return true;
    }
    function returnpage() {
    return currentPage;
    }

    </script>

    I want to do something like this :
    <p> <xsl:value-of select ="currentPage variable from th
    Javascript"</p>

    I know the issue has to do with XSL scope rule. I just don't know ho
    to get around it.

    Thank
    -
    wharfprad
    -----------------------------------------------------------------------
    Posted via http://www.forum4designers.co
    -----------------------------------------------------------------------
    View this thread: http://www.forum4designers.com/message103633.htm
     
    wharfprada, Aug 3, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kevin Flood
    Replies:
    0
    Views:
    1,033
    Kevin Flood
    Sep 8, 2004
  2. Kevin Flood
    Replies:
    1
    Views:
    2,769
    Kevin Flood
    Sep 13, 2004
  3. Klaus Friese
    Replies:
    0
    Views:
    481
    Klaus Friese
    Nov 22, 2004
  4. Ray Tayek
    Replies:
    3
    Views:
    527
    Ray Tayek
    Nov 30, 2003
  5. Replies:
    1
    Views:
    3,637
    A. Bolmarcich
    May 27, 2005
Loading...

Share This Page