Hey,
you can either use the second parameter in the post call like

dataResource.post(null, data);

or you use the invoke method:

dataRessource.invoke("post", null, data);

Regards,
Martin


Am 21.05.2012 um 14:18 schrieb Simon Walter:

> Hi all,
> 
> I've used the qx.io.rest.Resource class to GET data from my webservice, 
> though I cannot find a method to set the POST data for a POST request. 
> How do I do that?
> 
> var dataService = {"post": { method: "POST", url: action }};
> var dataResource = new qx.io.rest.Resource(dataService);
> dataResource.setBaseUrl(this.baseUrl);
> //dataResource.setData(data); // How do I do this?
> dataResource.post();
> 
> Simon
> 
> -- 
> simonsmicrophone.com
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to