Hello, I try to write desktop application, which needed to communicate with database. But if I send a xhr request to php file, message error will occurs.
Here is the code: forward.addListener("execute", function() { var termin_od = datum_od.getValue().getFullYear() + "-" + (datum_od.getValue().getMonth()+1) + "-" + datum_od.getValue().getDate(); var termin_do = datum_do.getValue().getFullYear() + "-" + (datum_do.getValue().getMonth()+1) + "-" + datum_do.getValue().getDate(); if (datum_od.getValue() >= datum_do.getValue()) { alert("Doba pobytu musí být alespoň 2 dny!"); } else { var xmlhttp = new qx.io.request.Xhr("test.php", "POST"); xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlhttp.setRequestData("test=someData"); xmlhttp.send(); xmlhttp.addListener("error", function(e) { alert("Error!!"); }, this); } }, this); In PHP file I try to approach by $_POST['test']. I develope the desktop application at localhost (xampp). Please, how correctly send a POST requests to php files? Thank you! -- View this message in context: http://qooxdoo.678.n2.nabble.com/Using-Xhr-object-in-Desktop-application-tp7585438.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ 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