This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Combo box and event Onchange
- To: <xsl-list at mulberrytech dot com>
- Subject: RE: Combo box and event Onchange
- From: "SeJo" <selim dot cesic at synes dot com>
- Date: Thu, 6 Apr 2000 14:13:17 +0200
- Reply-To: xsl-list at mulberrytech dot com
>
>
>-----Original Message-----
>From: owner-xsl-list@mulberrytech.com
>[mailto:owner-xsl-list@mulberrytech.com]On Behalf Of Steve Tinney
>Sent: 06 April 2000 13:14
>To: xsl-list@mulberrytech.com
>Subject: Re: Combo box and event Onchange
>
>
>> This gives to me the combo box but the OnChnage event doesn't
work.doesn't
>> work
>> ChargeRecherche is a javascript function and I want to pass the value of
the
>> Id selected.
>
>What does 'doesn't work' mean in this context? Your code seems OK,
>assuming that the context node has an attribute named Id.
>
> Steve
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
there is a "<" missing in front of /xsl:attribute..................but i
guess nothing would be processed if that is the case....try
<xsl:text>ChargeRecherche(</xsl:text><xsl:value-of
select="@Id"/><xsl:text>)</xsl:text>
instead.
<xsl:element name="select">
<xsl:attribute name="OnChange">
ChargeRecherche(<xsl:value-of select="@Id"/>)/xsl:attribute>
<xsl:attribute name="name">listeRecherche</xsl:attribute>
<xsl:for-each select="liste">
<xsl:element name="option">
<xsl:attribute name="value">
<xsl:value-of select="@Id"/>
</xsl:attribute>
<xsl:value-of select="@Name"/>
</xsl:element>
</xsl:for-each>
</xsl:element>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list