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

Re: onChange does not funtioning?

Subject: Re: onChange does not funtioning?
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Thu, 15 May 2008 16:42:29 +0530
Re:  onChange does not funtioning?
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

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.