Re: [qooxdoo-devel] Storing Async Result

2011-02-09 Thread Andreas Ecker
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

Re: [qooxdoo-devel] Storing Async Result

2011-02-09 Thread Tino Butz
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

Re: [qooxdoo-devel] Storing Async Result

2011-02-08 Thread 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 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

Re: [qooxdoo-devel] Storing Async Result

2011-02-08 Thread Derrell Lipman
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

Re: [qooxdoo-devel] Storing Async Result

2011-02-08 Thread ndm40
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

Re: [qooxdoo-devel] Storing Async Result

2011-02-08 Thread Peter Schneider
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

Re: [qooxdoo-devel] Storing Async Result

2011-02-08 Thread thron7
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, >

[qooxdoo-devel] Storing Async Result

2011-02-07 Thread ndm40
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 =