Hello Tobias,

Tobias Koller (GERMO GmbH) wrote:
> 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);
> 

that is what I intend to do, with the event listener containing 
something like this (I have not tried this out as of yet!):
if (tArea.getComputedValue().length > 25) {
        tArea.setValue(tArea.getComputedValue().substring(0, 
tArea.getComputedValue().length - 1));
}

But this will most likely result in ugly flickering of the unwanted symbol.


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
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to