<html>
<head>
<link rel="stylesheet" type="text/css" href="/ActiveWidgets255/runtime/styles/aqua/aw.css" />
<script src="/ActiveWidgets255/source/lib/aw.js"></script>
</head>
<body>
<script>
var obj = new AW.UI.Input;
obj.setId("obj");
obj.setControlText("text value");
obj.getContent('box/text').setAttribute('readonly',true);
document.write(obj);
var button = new AW.UI.Button;
button.setId("button");
button.setControlText("push me");
button.onControlClicked = function(event){
obj.getContent('box/text').setAttribute('readonly','');
}
document.write(button);
</script>
</body>
</html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/ActiveWidgets255/runtime/styles/aqua/aw.css" />
<script src="/ActiveWidgets255/source/lib/aw.js"></script>
</head>
<body>
<script>
var obj = new AW.UI.Input;
obj.setId("obj");
obj.setControlText("text value");
obj.getContent('box/text').setAttribute('readonly',true);
document.write(obj);
var button = new AW.UI.Button;
button.setId("button");
button.setControlText("push me");
button.onControlClicked = function(event){
obj.getContent('box/text').setAttribute('readonly','');
obj.getContent('box')._outerHTML = "";
obj.getContent('box')._innerHTML = "";
obj._outerHTML = "";
obj._innerHTML = "";
obj.refresh();
}
document.write(button);
</script>
</body>
</html>
obj.getContent('box/text').setAttribute('readonly','');
obj.getContent('box/text').setAttribute('readOnly','');
obj.setControlDisabled(true);
This topic is archived.