Hi jarous92,

this should work:

---
var xmlhttp = new qx.io.request.Xhr("test.php", "POST");

// can be omitted - will be set automatically
// xmlhttp.setRequestHeader("Content-type",
// "application/x-www-form-urlencoded");
xmlhttp.setRequestData("test=someData");
// works too
// xmlhttp.setRequestData({test:"someOtherData"});

xmlhttp.send();

xmlhttp.addListener("error", function(e) {
   alert("Error!!");
}, this);
xmlhttp.addListener("success", function(e) {
   alert(e.getTarget().getResponse());
}, this);
---

See a playground sample, which demonstrates this:
http://tinyurl.com/k4hlbkv

So maybe your problem is related to your PHP code?

Note: "qx.io.remote.Request" will be deprecated in a future release. 
Instead, please use classes found in "qx.io.request".

More Information:
* 
http://demo.qooxdoo.org/3.5/apiviewer/#qx.io.request.AbstractRequest~requestData
* http://demo.qooxdoo.org/3.5/apiviewer/#qx.io.request.Xhr
* http://demo.qooxdoo.org/3.5/apiviewer/#qx.io.remote.Request
* 
https://github.com/qooxdoo/qooxdoo/blob/master/framework/source/resource/qx/test/xmlhttp/echo_post_request.php

Regards
Richard

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to