:: Forum >>

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
Sunday, January 8, 2006
I never heard about an attribute called autocomplete, what does this do?
Peg
Wednesday, January 11, 2006
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
Thursday, January 12, 2006
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
Thursday, January 12, 2006
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
Thursday, January 12, 2006
Hey dmitry, don't hesitate to post your control, might be useful for us!
Peg
Friday, January 13, 2006
sure thing! as soon as I get it into at least a semi-decent shape :)
Dmitry
Monday, January 16, 2006

This topic is archived.


Back to support forum

Forum search