obj.setCellTemplate(inp,1,1)
var inp = new AW.UI.Input;
inp.setId("myInput");
var pas = new AW.UI.Input;
pas.setId("myInput1");
var obj = new AW.UI.Grid;
obj.setCellText(function(i, j){return j + "." + i});
obj.setHeaderText("header");
obj.setColumnCount(10);
obj.setRowCount(100);
obj.setCellTemplate(inp,1,1);
obj.setCellTemplate(pas,2,2);
pas.getContent("box/text").setAttribute("type", "password");
document.write(obj);
obj.setCellTemplate(pas,2,2);
obj.setCellTemplate(pas,0,0);
var inp = new AW.UI.Input;
inp.setId("myInput");
var pas = new AW.UI.Input;
pas.setId("myInput1");
pas.getContent("box/text").setAttribute("type", "password");
pas.getContent("box")._innerHTML = "";
pas.getContent("box")._outerHTML = "";
pas._innerHTML = "";
pas._outerHTML = "";
...
var inp = new AW.UI.Input;
inp.setId("myInput");
var pas = new AW.UI.Input;
pas.setId("myInput1");
var obj = new AW.UI.Grid;
obj.setCellText(function(i, j){return j + "." + i});
obj.setHeaderText("header");
obj.setColumnCount(10);
obj.setRowCount(100);
obj.setCellTemplate(inp,1,1);
obj.setCellTemplate(pas,2,2);
pas.getContent("box/text").setAttribute("type", "password");
pas.toString();
document.write(obj);
AW.UI.Password = AW.UI.Input.subclass();
AW.UI.Password.create = function(){
var obj=this.prototype;
obj.getContent('box/text').setAttribute('type', 'password');
obj.getContent("box")._innerHTML = "";
obj.getContent("box")._outerHTML = "";
obj._innerHTML = "";
obj._outerHTML = "";
};
var PasswordField = new AW.UI.Password;
PasswordField.setPosition(800,10);
document.write(PasswordField);
This topic is archived.