I created a custom Event for a textfield that will fire when the
maxlenght is reached.

------
Element.Events.full = {
    base: 'keyup', // something is typed in the element
    condition: function(event){
                if ($defined(this.getProperty('maxlength'))  {
                        // if the value.length matches the maxlength the event 
will fire
                        return (this.getProperty('value').length ==
this.getProperty('maxlength') );
                }
                return false;
    }
};
------

But at the moment the event will only fire when the user uses the
keyword, is there a way that when the user uses the mouse to fill the
textfield it will also fire (mouseup)?

Reply via email to