3.2.0

getControlText and onControlTextChanged behave different in IE and FF

The functions getControlText/onControlTextChanged of AW.UI.Input / AW.UI.Combo behaves different in IE and FF using version 2.0.1 in strict mode.

When typing a text into an input box using FF, the getControlText function does not return the new content until the imput-control looses the focus.
Using IE getControlText always returns the actual content.

The event handler onControlTextChanged is not called when typing into a control in FF but in IE it fires.

Does anyboy know the reason or even better a fix for that behaviour?
ralf
September 28,
I tried the following workaround to get the text of the input control even when using FF immediately:
if(AW.gecko) {	
    AW.UI.Input.prototype.getControlText = function() {		
        if(document.getElementById(this.getId()+"-box-text") == null) return '';
        else return document.getElementById(this.getId()+"-box-text").value;
    }
    AW.UI.Combo.prototype.getControlText = function() {		
        if(document.getElementById(this.getId()+"-box-text") == null) return '';
        else return document.getElementById(this.getId()+"-box-text").value;
    }


It works fine, but unfortunately this breaks the function "setControlText()" so I cannot use it.

Can somebody help?
ralf
October 13,

This topic is archived.

See also:


Back to support forum