You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by johnson <jo...@erp.tw> on 2007/07/16 08:25:42 UTC

a bug for forms-field-styling on ie(maybe)

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


Re: a bug for forms-field-styling on ie(maybe)

Posted by johnson <jo...@erp.tw>.
fix info, If I use an action button to replace the default filter apply
button, if I enter words in the filter field then press enter, the same
error(double click) take place.

johnson

johnson 提到:
> 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
>   


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


Re: a bug for forms-field-styling on ie(maybe)

Posted by johnson <jo...@erp.tw>.
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