Hi Alex,
thank you for your help. "autocompletion" did change the behavior!
It is much easier when you know the name of a feature ;)
I now added both attributes ("name" _and_ "autocompletion"; just in case) and
see that the browser is displaying a list of last entered values.
So I think I don't need any "form" element wrapping the inputs.
Some strange behavior still exists, but I have to evaluate whether this is
normal browser behavior or not. (The login names 'foo', 'bar', 'john' etc. will
be displayed for "autocompletion", while 'Administrator' isn't....strange :-/ )
Thanks again for your support,
Peter
-------- Original --------
From: Alexander Steitz
Date: 19.03.2010 15:17
> Hi Peter,
>
> On Friday March 19 2010 11:35:55 Peter Schneider wrote:
>> I would like to use the 'suggestion behavior' of the browser for text
>> fields. Normal behavior for HTML forms in modern browsers is, that text
>> fields are suggesting last entered values.
> You're talking about the "autocompletion" behaviour, right?
>
>> I've added the HTML-Attribute "name" to the fields (see below), but this
>> doesn't seem to work.
>>
>> <code>
>> var loginTextfield = new qx.ui.form.TextField();
>>
>> // ...adding, positioning, etc.
>>
>> loginTextfield.getContentElement().setAttribute("name", "login");
>> </code>
>>
>> The generated HTML contains the "name" attribute, so that's working...
> You can try
>
> --snip--
> var loginTextfield = new qx.ui.form.TextField();
> // ...adding, positioning, etc.
> loginTextfield.getContentElement().setAttribute("autocomplete", "on");
> --snip--
>
> to check out if that's working for you.
>
>> Could it be, that the 'suggestion behavior' in modern browsers needs the
>> fields to be enclosed in a <form> element?
> I only know that you need to set "autocomplete" to "off" for all "input"
> elements and the "form" element to make sure that the autocompletion is
> really
> disabled. But if you need to have a "form" element wrapped around to get it
> working ...
>
>> If that's the case, how can I achieve this with qooxdoo (version 1.0.1)?
> Create your own "form" container which is creating your "form" element, I
> guess.
>
> cheers,
> Alex
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel