Hi,
I am relatively new to using XSL. I am using the XSL to manipulate some XML. I was wondering if its possible to trigger some javascript after the value in a drop down has been updated?
In the code below I am trying to trigger the CheckPool javascript everytime the value in the Pools drop down changes however nothing seems to be happening.
XSL template for drop down is:
<xsl:template match="Pool" >
<xsl:element name="Option">
<xsl:attribute name="value" ><xsl:value-of select="PoolsId"/></xsl:attribute>
<xsl:attribute name="onChange">checkPool()</xsl:attribute>
<xsl:value-of select="PoolsName"/>
</xsl:element>
</xsl:template>
The template is called from another template using the following call :
<select name="PoolsIdShortName">
<OPTION VALUE=""/>
<xsl:apply-templates select="Pool"/></select>
What I really want to do is populate a text box with the updated value of the pool then use the text box value in some javascript although for now I am having difficulty getting the change event of the drop down to trigger any action.
Any tips/help would be much appreciated,
Thanks
I am relatively new to using XSL. I am using the XSL to manipulate some XML. I was wondering if its possible to trigger some javascript after the value in a drop down has been updated?
In the code below I am trying to trigger the CheckPool javascript everytime the value in the Pools drop down changes however nothing seems to be happening.
XSL template for drop down is:
<xsl:template match="Pool" >
<xsl:element name="Option">
<xsl:attribute name="value" ><xsl:value-of select="PoolsId"/></xsl:attribute>
<xsl:attribute name="onChange">checkPool()</xsl:attribute>
<xsl:value-of select="PoolsName"/>
</xsl:element>
</xsl:template>
The template is called from another template using the following call :
<select name="PoolsIdShortName">
<OPTION VALUE=""/>
<xsl:apply-templates select="Pool"/></select>
What I really want to do is populate a text box with the updated value of the pool then use the text box value in some javascript although for now I am having difficulty getting the change event of the drop down to trigger any action.
Any tips/help would be much appreciated,
Thanks