Re: [xsl] onChange does not funtioning?

Subject: Re: [xsl] onChange does not funtioning?
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Thu, 15 May 2008 16:42:29 +0530
It seems, you are generating wrong value of onChange attribute (which
cannot trigger a form submit).

I think, you need to do:
<xsl:attribute name="onChange">document.forms[0].submit()</xsl:attribute>
(if there is a single form in the page)

or,

<xsl:attribute name="onChange">document.formName.submit()</xsl:attribute>
(if you know the form by name)

Your problem does not seem at the XSLT level. It seems to be at the HTML level.

On 5/15/08, nenad@xxxxxxxxxxxxxxx <nenad@xxxxxxxxxxxxxxx> wrote:
> 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


-- 
Regards,
Mukul Gandhi

Current Thread