You need to add this as third parameter of addListener(). Cheers, Fritz
On Wed, 14 Jul 2010, rlbferreira 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. > -- Oetiker+Partner AG tel: +41 62 775 9903 (direct) Fritz Zaucker +41 62 775 9900 (switch board) Aarweg 15 +41 79 675 0630 (mobile) CH-4600 Olten fax: +41 62 775 9905 Schweiz web: www.oetiker.ch ------------------------------------------------------------------------------ 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
