Hey,
i've Problem with my Ajax-Request. I wrote this function:
ajax_request: function(url){
this.debug("Execute Ajax-Request to '" + url + "'");
var ajax_request = new Object();
ajax_request["security"] =
"61003481635a684e659f05675c9040d038ce5fab";
var request = "&data=" + qx.util.Json.stringify(ajax_request);
var ajax_abfrage = new qx.io.HttpRequest;
ajax_abfrage.setUrl(url);
ajax_abfrage.setMethod("POST");
ajax_abfrage.setData(request);
ajax_abfrage.setTimeout(5000);
ajax_abfrage.addListener("load", function() {
alert("response:" + ajax_abfrage.getResponseText() +
ajax_abfrage.getResponseText());
var ergebnis_temp =
qx.util.Json.parse(ajax_abfrage.getResponseText());
if (ergebnis_temp["status"] == "0")
{
alert('notok');
}
else
{
alert('OK!!');
}
}, this);
ajax_abfrage.addListener("error", function() {
alert ("Fehler! Seite konnte nicht aufgerufen
werden (ER123).");
}, this);
ajax_abfrage.addListener("timeout", function() {
alert ("Fehler! Seite konnte nicht aufgerufen werden
(TI123).");
}, this);
ajax_abfrage.send();
}
Every time i get no message from the server. I've checkd the requested
script by sending me an email on request. It's oaky. The request arrives the
server, but i don't get an answer.
Can anybody help me?
Blackbird89
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Ajax-Request-Problem-tp6384043p6384043.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel