There is another question.
I am using qooxdoo with tornado long_poll chat demo.

What i need is after each long poll requests , server will send cursor
,which is last ID for returned value, i need to send that cursor back to
server.
longPool of qx.io.rest.Resource is not able to pass parameters to server. I
think i need to override it to allow such.


On Fri, Jun 20, 2014 at 10:09 PM, Phyo Arkar <phyo.arkarl...@gmail.com>
wrote:

> Ah , its now working , the error was due to e.getResponse()!
>
> Thanks man ! thats why i love qooxdoo!
>
>
> On Fri, Jun 20, 2014 at 5:55 PM, Richard Sternagel <
> richard.sterna...@1und1.de> wrote:
>
>> Hi Phyo Arkar,
>>
>> "e.getData()" should give you the response already.
>> "e" is an object of the type "qx.event.type.Rest":
>>
>> http://demo.qooxdoo.org/4.0/apiviewer/#qx.event.type.Rest
>>
>> ***
>> Here is a working example:
>>
>> var desc1 = {
>>    "get": { method: "GET", url: "http://echo.jsontest.com/{path}"; },
>>    "post": { method: "POST", url: "http://validate.jsontest.com/"; }
>> };
>> var res1 = new qx.io.rest.Resource(desc1);
>> res1.addListener("getSuccess", function(e) {
>>    console.log("s", e.getData());
>> });
>> res1.addListener("getError", function(e) {
>>    console.log("e", e.getData());
>> });
>>
>> res1.addListener("postSuccess", function(e) {
>>    console.log("s", e.getData());
>> });
>> res1.addListener("postError", function(e) {
>>    console.log("e", e.getData());
>> });
>>
>> res1.get({"path": "/key/value/one/two"});
>> res1.post(null, {"json": {"title": "monkey"}});
>>
>> ***
>> Runnable as playground sample:
>> http://tinyurl.com/nfqr2rq
>>
>> ***
>> There is also a dedicated manual page:
>> http://manual.qooxdoo.org/4.0/pages/communication/rest.html
>>
>> ... and the API Viewer page:
>> http://demo.qooxdoo.org/4.0/apiviewer/#qx.io.rest.Resource
>>
>> Hope that helps.
>>
>> Regards
>> Richard
>>
>>
>> ------------------------------------------------------------------------------
>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
>> Find What Matters Most in Your Big Data with HPCC Systems
>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
>> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
>> http://p.sf.net/sfu/hpccsystems
>> _______________________________________________
>> qooxdoo-devel mailing list
>> qooxdoo-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>
>
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to