[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Javascript variable to XSL variable

Subject: Re: Javascript variable to XSL variable
From: Camaleón <noelamac@xxxxxxxxx>
Date: Thu, 17 Feb 2005 09:19:29 +0100
xsl variable javascript
On Wed, 16 Feb 2005 15:22:55 -0400, Jaime Stuardo wrote:

> I think onChange="{$your_variable}" would work

Hi Jaime,

It is a Javascript variable, not XSL variable. The variable contains
the value of combo box, so I need to pass this one to use it as XSL
param or variable to filter some results.

<script type="text/javascript">
function getValue() {
var=document.form1.combo1.value
return var;
}
</script>

<select name="combo1">
<option select="{$value1}>Option1</option>
<option select="{$value2}>Option2</option>
<option select="{$value3}>Option3</option>
<option select="{$value4}>Option4</option>
</select>

"var" is a Javascript variable and I need to get something like:

<xsl:param name="var2" select="(value of var)"/>
<xsl:value-of select="$var2"/>

Greetings,

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.