[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Combo box and event Onchange

Subject: RE: Combo box and event Onchange
From: "SeJo" <selim.cesic@xxxxxxxxx>
Date: Thu, 6 Apr 2000 14:13:17 +0200
html combo box onchange
>
>
>-----Original Message-----
>From: owner-xsl-list@xxxxxxxxxxxxxxxx
>[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Steve Tinney
>Sent: 06 April 2000 13:14
>To: xsl-list@xxxxxxxxxxxxxxxx
>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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.