xsl-list
[Top] [All Lists]

Re: Javascript variable to XSL variable

2005-02-17 01:19:29
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,

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--