Antonio Melé wrote:
How could I set a Vaule of a TextField outside the window.application.main function?
I need it for ajax purposes...
If You don't have reference to this object in variable in global scope and You have reference to some parent object (QxWindow, for example), You are probably able to find this object between child objects, don't You? If You will don't know index of this child, You can set (example) setUserData('textfield_id', 'ajaxField1') on Your QxTextField and response can test typeof QxTextField condition and check getUserData('textfield_id') for 'ajaxField1' string.

Second option is: just send with Your ajax request parameter hashCode of Your QxTextField object - output of method method toHashCode() - and when You will process response from server, You can find Your object in global array QxObjectDataBase by hashCode as key.

I'm pretty sure there are other ways how to solve Your problem, but I'm using those two, as creation of some global variables is not necessary in qooxdoo environment.




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to