> 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?

Your container didn't know a member called "username"!
I guess you use a grid layout so it's easy to access the child widgets
of the container because you know what you want and where they are. Try
the following in your handler function:

var username = this.__container.getCellWidget(0, 1);
alert(username.getValue());

Please do not simple copy and paste code from the mailing list or demo
browser or somewhere else. Try to understand what this code does! This
way you learn more about javascript and qooxdoo.

Regards,
Andreas




------------------------------------------------------------------------------
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

Reply via email to