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