3.2.0

Resetting text of checkbox under IE

Hi,
I'm using AW 2.0, and have a problem with resetting the text of a checkbox under IE. It works just fine in Firefox and Mozilla. For some reason, IE doesn't like the setControlText function when the control is changed. Can anyone help me out?
The following is the 2 functions I created along with alerts
var obj = new AW.UI.Checkbox;
    var AW_Checkbox = TAG('div', []);

    AW_Checkbox.setText = function(value){
    alert("SETTING");
      if (value != null){
        if ((value == -1) || (value == 1) || (value == "YES")){
alert("A");
          obj.setControlText("YES");
alert("1");
        }
        else{
alert("B");
          obj.setControlText("NO");
alert("2");
        }
      }
      else
        obj.setControlText("");
    };

    obj.onControlValueChanged = function(value) {
alert("CHANGED");
      AW_Checkbox.setText(value);
alert("CHANGED2");
    };
Miky
August 2,

This topic is archived.

See also:


Back to support forum