RE: Combo box and event Onchange

Subject: RE: Combo box and event Onchange
From: Benoît BARRE <benoit.barre@xxxxxxxxxx>
Date: Thu, 6 Apr 2000 13:52:08 +0200
Hi Catherine,

Try
   <xsl:attribute name="OnChange">ChargeRecherche('<xsl:value-of
select="@Id"/>')/xsl:attribute>


Benoît

-----Message d'origine-----
De : catherine.blas@xxxxxxxxxxxxxxxx
[mailto:catherine.blas@xxxxxxxxxxxxxxxx]
Envoyé : jeudi 6 avril 2000 11:20
À : xsl-list@xxxxxxxxxxxxxxxx
Objet : Combo box and event Onchange


Hello,

I want to do a combo box and pass the Id selected on the event Onchange. My
combo box looks like this :


<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>


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.
Is it possible, and if it is, how can I do this ?

Thanks in advance

Catherine


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread