[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: onChange does not funtioning?
As far as XSLT is concerned, onChange is just an attribute to be added to the generated HTML (or ASP) output document. It's no different from generating an attribute called bgColor or fzSackTheLawyers. If the output document doesn't behave the way you want, then you need to fix it. That doesn't require a change in the way the document is generated. Or perhaps you are imagining that somehow the onChange action should be activated during the XSLT transformation? If so, you're confused about the processing model. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: nenad@xxxxxxxxxxxxxxx [mailto:nenad@xxxxxxxxxxxxxxx] > Sent: 15 May 2008 11:33 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: onChange does not funtioning? > > Hi, > I have: > > <form action="Default.aspx" runat="server"> > > > <select name="SelectCategories"> > <xsl:attribute > name="onChange">form.submit()</xsl:attribute> > <xsl:for-each > select="document('../content/en//categorycodes.xml')/catcodes/ > category"> > <option> > <xsl:attribute name="value"> > <xsl:value-of select="@code"/> > </xsl:attribute> > > <xsl:value-of select="."/> > </option> > </xsl:for-each> > </select> > > > > </form> > > onChange is not reacting. > Should I use javascript instead? > Thanks > Nenad
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|