XSL + JavaScript

W

wharfprada

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,828
Latest member
LauraCastr

Latest Threads

Top