3.2.0

setting autocompolete to OFF

Hi, i use AW.UI.Input to generate an input box. I'd also like to be able to turn the autocomplete feature of this box off. If I call obj.setAttribute("autocomplete","off"), it is obj's outmost <SPAN> tag that gets the autocomplete attribute set, not the <INPUT> tag.

How can I do this properly?
Dmitry
January 8,
I never heard about an attribute called autocomplete, what does this do?
Peg
January 11,
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/autocomplete.asp

it works in FF also. In fact, when autocomplete is on in FF (which it is by default), I get a lot of nasty exceptions when working with selectins and text ranges.
Dmitry
January 12,
If you want to turn it off you have to access the box/text part of the Input and turn it off there.

var obj = new AW.UI.Input;
obj.getContent('box/text').setAttribute('autocomplete', 'off');


FireFox does support it but in a different way then IE does:

http://xulplanet.com/references/elemref/ref_textboxFirefoxAutoComplete.html

Jim Hunter
January 12,
Yep, that's what I ended up doing. But thanks for the FF reference. It looks very interesting. I'm implementing a Google Suggest type input box and this will come very handy.
Dmitry
January 12,
Hey dmitry, don't hesitate to post your control, might be useful for us!
Peg
January 13,
sure thing! as soon as I get it into at least a semi-decent shape :)
Dmitry
January 16,

This topic is archived.

See also:


Back to support forum