:: Forum >>

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
Friday, May 4, 2007
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)
Friday, May 4, 2007

This topic is archived.


Back to support forum

Forum search