Hi Petr,
Thank you very much.
I was using the 3rd parameter in the "parent" function, but for some
reason I didn't use in the "child".
It's fixed now!
Thanks again.
Best Regards,
Ricardo Ferreira
On 14-07-2010 15:59, Petr Kobalíček [via qooxdoo] wrote:
> Hi,
>
> quick fix:
>
> request.addListener("
> completed", function(e){
> if(e.getContent() == "true")
> {
> this.tmp_var = true;
> alert('True');
> }
> else
> {
> this.tmp_var = false;
> alert('False');
> }
> }, this);
>
> third argument to addListener() is the function context.
>
> Hope that helps
> - Petr
>
> On Wed, Jul 14, 2010 at 3:12 PM, rlbferreira <[hidden email]
> </user/SendEmail.jtp?type=node&node=5292991&i=0>> wrote:
>
>
> Hi,
>
> I'm trying to do a remote request/response -
> http://pastebin.com/NLZWpifw.
>
> And the script is working just fine! My problem has to do with the
> variables
> scope.
>
> If I try to access a variable of the script that I'm calling from,
> it gives
> me a error because the variable is not defined. But I defined in the
> "members" and even in "main". Can anyone help me?
>
> -- Example --
>
> request.addListener("completed", function(e){
> if(e.getContent() == "true")
> {
> this.tmp_var = true;
> alert('True');
> }
> else
> {
> this.tmp_var = false;
> alert('False');
> }
> });
>
> -- --
>
> Thanks in advance.
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/Variables-Scope-tp5292436p5292436.html
>
> <http://qooxdoo.678.n2.nabble.com/Variables-Scope-tp5292436p5292436.html?by-user=t>
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first <http://sprint.com/first> --
> http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> qooxdoo-devel mailing list
> [hidden email] </user/SendEmail.jtp?type=node&node=5292991&i=1>
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>
>
> --
> Best regards
> - Petr Kobalicek <http://kobalicek.com <http://kobalicek.com?by-user=t>>
>
> ------------------------------------------------------------------------------
>
>
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> qooxdoo-devel mailing list
> [hidden email] </user/SendEmail.jtp?type=node&node=5292991&i=2>
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
> ------------------------------------------------------------------------
> View message @
> http://qooxdoo.678.n2.nabble.com/Variables-Scope-tp5292436p5292991.html
> To unsubscribe from Variables Scope, click here
> < (link removed) =>.
>
>
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Variables-Scope-tp5292436p5293051.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel