Hello,
I think the main problem is, that there is no maxlength-attribute for a
textfield in standard HTML.
A quick solution would be something like this:
var tarea = new qx.ui.form.TextArea();
tarea.set({width: 100, height: 100});
tarea.addEventListener("input", function(e){
//check the length of your value
},this);
Tobias
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Tobias Koller
(GERMO GmbH)
Gesendet: Montag, 11. Juni 2007 14:10
An: qooxdoo Development
Betreff: Re: [qooxdoo-devel] 0.6.6: maximum number of characters in TextArea
0.7 also doesn't work.
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Daniel Haferkorn
Gesendet: Montag, 11. Juni 2007 13:47
An: [email protected]
Betreff: [qooxdoo-devel] 0.6.6: maximum number of characters in TextArea
Hello,
I'd like to know how to correctly set the maximum allowed number of
characters for a TextArea. I tried to use the method SetMaxLength()
which the TextArea inherits from the TextField widget, but it doesn't work:
tArea.setMaxLength(25);
The user is unfortunately still able to enter more than 25 characters.
Could this be broken?
Regards,
Daniel Haferkorn
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel