:: Forum >>

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
Friday, June 8, 2007
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)
Friday, June 8, 2007
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')
Monday, June 11, 2007
it should be setAttribute('maxLength','5'), capital 'L' -

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

This topic is archived.


Back to support forum

Forum search