3.2.0

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')

Serkan Eksi
June 8,
Are you using version 2.0.1? If so, this bug should be fixed now in 2.0.2. It also includes the new class - AW.UI.Password.
Alex (ActiveWidgets)
June 8,
i'm using version 2.0.2 of the aw....
but this bug is going on for the attribute named "maxlength"

for example:
txt_pwd.getContent('box/text').setAttribute('maxlength','5')
June 11,
it should be setAttribute('maxLength','5'), capital 'L' -

http://msdn2.microsoft.com/en-us/library/ms534157.aspx
Alex (ActiveWidgets)
June 12,
sorry
it's my absent-mindedness
Serkan Eksi
June 13,

This topic is archived.

See also:


Back to support forum