Hi Alex,

thanks, it works fine, but - in this.ergbnis was after the first run the 
inital value. When I call the funciton with the remote request a second 
time, I have the right value.

I think it has to do with the completed state of the request - the 
function is finished, but the request is not. Is it a good idea to check 
the request state with isCompleted() to avoid that the function 
getAktionById() finished before the request is finished?

Cheers
Thomas

Alexander Back schrieb:
> Hi Thomas,
> 
> If you want to set the data to the variable "ergebnis" you have to turn 
> it into an instance variable.
> 
> --snip--
> // instead of
> var ergebnis = new String();
> 
> // write
> this.ergebnis = "";
> --snip--
> 
> Or if you want to set the content of response to another variable of a 
> class you have to have access to this other class inside your 
> "completed" listener.
> 
> --snip--
> // the third parameter is the context in which the listener is executed
> req.addListener("completed", function(e) {
>    // e is a "qx.io.remote.Response" instance
>    var content = e.getContent();
> 
>    // this refers to your application class "Something"
>    // supposed you have set "this.anotherClassInstance"
>    // previously in your code
>    this.anotherClassInstance.setVariable(content);
> }, this);
> --snip--
> 
> If you any further questions let me know.
> 
> cheers,
>    Alex
> 
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to