On Sun, Jan 31, 2010 at 14:49, Stefan Meyer <[email protected]> wrote:
> Hello,
> i add in a methof of a class some textfields
>
> /* Text fields */
> var username = new qx.ui.form.TextField();
> var password = new qx.ui.form.PasswordField();
>
> this.__container.add(username.set({
> allowShrinkX: false,
> paddingTop: 3
> }), {row: 0, column : 1});
> username.focus();
>
> /* Check input on click */
> button1.addListener("execute", this.checkInput, this);
>
>
> in the event above i want to access the value of the username textfile
>
> i try this:
>
> alert(this.__container.username.value);
>
> but is not avaiable
> How can i access it?
>
I highly recommend the book JavaScript: The Definitive Guide by Flanagan.
http://www.amazon.com/JavaScript-Definitive-Guide-David-Flanagan/dp/0596101996
Your question is a basic Object Oriented JavaScript question, not one that
is specific to qooxdoo. Every JavaScript programmer should have a copy of
the above-mentioned book, and read and understand it thoroughly. It will
answer many a question, and is very well written.
Derrell
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel