:: Forum >>

TextAreaInput. This element is made correctly ?

AW.UI.TextAreaInput = AW.System.Control.subclass();
AW.UI.TextAreaInput.create = function(){
    var obj=this.prototype;
    obj.setTag("textarea");
    obj.setClass("textarea","box");
    obj.setEvent("oncontextmenu","event.cancelBubble=true");
    obj.setEvent("onselectstart","event.cancelBubble=true");
    obj.setEvent("onkeyup", function(){
        var id=this.getId();
        var e=$(id).innerHTML;
        return this.setContent("text",e);
        this.refresh()
    });
}
Valeri
Friday, March 2, 2007

This topic is archived.


Back to support forum

Forum search