Fabian,
My code is exactly the same as RPC_6 example in demobrowser.

      rpc.addEventListener("completed",
                           function(e) {
                             var response = e.getData();
                             var seqnum = response.id;
                             var result = response.result;  <==== data from
RPC call
                             mycalls[seqnum] = null;
                             t = new Date().getTime() - t0;
                             layout1.warn(t + ": response " + seqnum +
                                          ": " + result);
                           });


Any idea ?
Frederic



Fabian Jakobs-2 wrote:
> 
> frederic schrieb:
>> Hi Fabian,
>> thanks for your help but my problem is not resolved ; In my case I need
>> to
>> get value of the call.
>>
>> The old way (with qx 0.7.1) :
>>
>> req.addEventListener("completed",qx.lang.Function.bind(function(e) {
>>      var response = e.getData();
>>      alert(response.result); // display my data
>>      ....
>> }
>>
>> The new way (with qx 0.7.2) :
>>
>> req.addEventListener("completed",qx.lang.Function.bind(function(e) {
>>      var response = e;
>>     alert(e); // display [qx.event.type.DataEvent]
>>     alert(response.result); // error undefined
>>     alert(e.getData()); // warning in qx 0.7.2
>>      ....
>> }
>>   
> Normally I would say that the behaviour you see cannot happen. Either 
> the event is a DataEvent, then no warning should be printed for the 
> "getData" call or the event is a "Response" but then the "alert(e)" must 
> display something else.
> 
> I have just converted the Transport_?.html examples and always got 
> "response" objects as events.
> 
> Could you give me a small example code, which reproduces your problem?
> 
> 
> Best Fabian
> 
> -- 
> Fabian Jakobs
> JavaScript Framework Developer
> 
> 1&1 Internet AG
> Brauerstraße 48
> 76135 Karlsruhe
> 
> Amtsgericht Montabaur HRB 6484
> 
> Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas
> Gauger, Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss
> Aufsichtsratsvorsitzender: Michael Scheeren
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

-- 
View this message in context: 
http://www.nabble.com/qx-0.7.2---qx.io.remote.Response%3AgetData-deprecated-tf4482796.html#a12793900
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to