> The following code works for me
>                 var req = new 
> qx.io.remote.Request("searchForBooks", "GET",
> "application/json");
>                 req.setParameter("session-key",
> this.app.getUserData('session-key'));
>                 req.addEventListener("completed", function(e) {
>                     response = e.getData().getContent();

Just do e.getContent() instead - see 

http://www.nabble.com/The-method-'qx.io.remote.Response:getData'-is-deprec
ated-t4697758.html

>                     if (response.status == "success") {
>                        var data = response.value;
>                     }
> 
> the data returned from the call looks something like this
> 
>            {"status": "success", "value": "whatever the value is"}
> 
> and I can access the data via response.status and response.value
> 
> The only difference from yours that I can see is that I am sending 
> in an "application/json" mime type.

This changed from text/json some time ago - see
http://bugzilla.qooxdoo.org/show_bug.cgi?id=253 and note that in 0.7 the
constants were removed as the text was being compressed and could be used
directly.

Hugh

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to