cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnson <john...@erp.tw>
Subject Re: a bug for forms-field-styling on ie(maybe)
Date Mon, 16 Jul 2007 06:42:18 GMT
If I change the default filter-button to an action-button without
submit, it'll ok.

Best Regards

johnson

johnson 提到:
> Hi!
>
> I try to put the forms pagination sample to portal, when using filter,
> If I enter the filter words then click apply, the form will be click
> twice, then cause an error.
>
> If I remove this code in forms-field-styling.xsl, it'll ok, but the
> onchange will not work.
>
> <xsl:if test="@listening = 'true' and not(fi:styling/@submit-on-change =
> 'false') and not(fi:styling/@onchange) and not(fi:styling/@list-type =
> 'double-listbox')">
> <xsl:choose>
> <!-- IE does not react to a click with an onchange, as firefox does, so
> for radio and checkbox put an onclick handler instead -->
> <xsl:when test="local-name() = 'booleanfield' or fi:styling/@list-type =
> 'radio' or fi:styling/@list-type = 'checkbox'">
> <xsl:attribute name="onclick">forms_submitForm(this)</xsl:attribute>
> </xsl:when>
> <-- <xsl:otherwise>
> <xsl:attribute name="onchange">forms_submitForm(this)</xsl:attribute>
> </xsl:otherwise> -->remove this
> </xsl:choose>
> </xsl:if>
>
> additional info, this will work in firefox without remove this code.
>
> Any idea?
>
> Best Regards
>
> johnson
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message