setAttribute doesnt work after setControlImage method !!!
the code shown bolded, doesnt work if it is after the creatText method.
actually it doesnt work after the "setControlImage(img);" method.
if i remove the line it works.
what should i do about this problem, pls help.
function createText(id, txt, img){
var o = new AW.UI.Input
with (o){
setId(id);
setControlText(txt);
setControlImage(img); <== ????
refresh();
}
return o;
}
var txt_uid=createText('txt1','','');
var txt_pwd=createText('pwd1','','key');
txt_pwd.getContent('box/text').setAttribute('type','password')
actually it doesnt work after the "setControlImage(img);" method.
if i remove the line it works.
what should i do about this problem, pls help.
function createText(id, txt, img){
var o = new AW.UI.Input
with (o){
setId(id);
setControlText(txt);
setControlImage(img); <== ????
refresh();
}
return o;
}
var txt_uid=createText('txt1','','');
var txt_pwd=createText('pwd1','','key');
txt_pwd.getContent('box/text').setAttribute('type','password')
Serkan Eksi
June 8,