Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question regarding XSL Drop Down

Status
Not open for further replies.

chiarak

Programmer
Nov 26, 2001
23
0
0
AU
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=&quot;Pool&quot; >

<xsl:element name=&quot;Option&quot;>
<xsl:attribute name=&quot;value&quot; ><xsl:value-of select=&quot;PoolsId&quot;/></xsl:attribute>
<xsl:attribute name=&quot;onChange&quot;>checkPool()</xsl:attribute>
<xsl:value-of select=&quot;PoolsName&quot;/>

</xsl:element>

</xsl:template>
The template is called from another template using the following call :

<select name=&quot;PoolsIdShortName&quot;>
<OPTION VALUE=&quot;&quot;/>
<xsl:apply-templates select=&quot;Pool&quot;/></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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top