3.2.0

2.0.2 - Checkbox Disable Bug

I appears there is a bug in the checkbox code or something has changed that I've yet to find documentation on...

The following code keeps the checkbox from being checked in 2.0.1 but in 2.0.2, it appears disabled but you can still check the box.

<html>
<head> 
  <script src="/ActiveWidgets/runtime/lib/aw.js"></script> 
  <link href="/ActiveWidgets/runtime/styles/aqua/aw.css" rel="stylesheet"></link> 
</head>
<body>
<script> 
   var check = new AW.UI.Checkbox;
   check.setId('check');
   check.setControlText("test checkbox");
   check.setAttribute("disabled", true);
   check.setAttribute("checked", true);
   document.write(check);
</script>

</body>
</html>


Does anyone know of a workaround?
Mike
May 4,
AW 2.0.2 now supports 'disabled' property for most controls -

var obj = new AW.UI.Checkbox;
obj.setControlText("checkbox");
obj.setControlDisabled(true);
document.write(obj);
Alex (ActiveWidgets)
May 4,

This topic is archived.

See also:


Back to support forum