You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Alkiviades Kafkis (JIRA)" <ji...@apache.org> on 2010/06/12 09:04:13 UTC
[jira] Created: (CLK-688) js validation
js validation
--------------
Key: CLK-688
URL: https://issues.apache.org/jira/browse/CLK-688
Project: Click
Issue Type: Improvement
Components: extras
Reporter: Alkiviades Kafkis
Priority: Minor
IntegerField can't disallow pasting text chars in it
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CLK-688) js validation
Posted by "Bob Schellink (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLK-688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12880591#action_12880591 ]
Bob Schellink commented on CLK-688:
-----------------------------------
IntegerField has an onkeypress JavaScript filter which prevents the paste function. Is it possible in JS to conditionally paste which works across all browsers?
What is the validation behavior if the onkeypress attribute is removed e.g:
public void onInit() {
IntegerField f = new IntegerField("field");
f.removeAttribute("onkeypress");
}
> js validation
> --------------
>
> Key: CLK-688
> URL: https://issues.apache.org/jira/browse/CLK-688
> Project: Click
> Issue Type: Improvement
> Components: extras
> Reporter: Alkiviades Kafkis
> Priority: Minor
>
> IntegerField can't disallow pasting text chars in it
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CLK-688) js validation
Posted by "Alkiviades Kafkis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLK-688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alkiviades Kafkis updated CLK-688:
----------------------------------
Attachment: cp-test.zip
this test disallows pasting based on the id of the input textbox.
i 'll try to figure out if it is possible to capture the text to be pasted from the event that is raised. if it is then it would be possible to allow pasting conditionally.
this test works even in ie 5.5 thanx to mootools library.
> js validation
> --------------
>
> Key: CLK-688
> URL: https://issues.apache.org/jira/browse/CLK-688
> Project: Click
> Issue Type: Improvement
> Components: extras
> Reporter: Alkiviades Kafkis
> Priority: Minor
> Attachments: cp-test.zip
>
>
> IntegerField can't disallow pasting text chars in it
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.