Hi Nelson!
On Tue, 2011-02-08 at 11:22 -0800, ndm40 wrote:
> Is there an idiomatic way to accomplish "a block" or "a wait" for a response?
No, there isn't. It is asynchronous in nature, so you have to use such
event listeners (aka callbacks).
> (I was thinking about using a synchronous call but
Hi,
Sorry, I don't understand what you want to do: do you want to block the UI
while the request is running?
Tino
Am 08.02.2011 um 20:22 schrieb ndm40:
>
> Is there an idiomatic way to accomplish "a block" or "a wait" for a response?
> (I was thinking about using a synchronous call but it ap
Is there an idiomatic way to accomplish "a block" or "a wait" for a response?
(I was thinking about using a synchronous call but it appears that will not
work with cross domains.)
Thanks,
Nelson
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Storing-Async-Result-tp600229
On Tue, Feb 8, 2011 at 10:56, ndm40 wrote:
>
> qx.Class.define("riveware.Application",{
> extend : qx.application.Standalone,
> members : {
> user : null,
> rtemp: null,
> ...
>
> callRpcGetDir : function () {
> var rpc = new qx.io.remote.Rpc();
> rpc.setTime
qx.Class.define("riveware.Application",{
extend : qx.application.Standalone,
members : {
user : null,
rtemp: null,
...
callRpcGetDir : function () {
var rpc = new qx.io.remote.Rpc();
rpc.setTimeout(1);
rpc.setUrl(URL);
rpc.setSer
Hi,
youldn't 'this' be 'that' ?
so:that.rtemp = qx.util.Json.parse(result);
instead of this.rtemp = qx.util.Json.parse(result);
/Peter
On 2011-02-08 09:03 ndm40 wrote:
>
> I would like to store async result into a global variable when calling
> callRpcGetDir function as in:
>
> qx.Cla
On 02/08/2011 12:39 AM, ndm40 wrote:
>
> I would like to store async result into a global variable when calling
> callRpcGetDir function as in:
>
> qx.Class.define("riveware.Application",{
>extend : qx.application.Standalone,
>members : {
>user : null,
>rtemp: null,
>
I would like to store async result into a global variable when calling
callRpcGetDir function as in:
qx.Class.define("riveware.Application",{
extend : qx.application.Standalone,
members : {
user : null,
rtemp: null,
...
callRpcGetDir : function () {
var rpc =