Hi,

your server receives the request, but what is the status code of your response?

For the "load" event to be triggered, the status code must be in the success 
range (e.g. 200, see isSuccessFul()).

Try this to find out:

// var req = ajax_abfrage;
req.addListener("change", function() {
  this.debug("readyState: " + req.getReadyState());
  this.debug("statusCode: " + req.getStatusCode());
});

Or you can check the network tab of Firebug/Webkit's Dev-Tools.

Regards
Tristan

Am 20.05.2011 um 00:29 schrieb Blackbird89:

> 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


------------------------------------------------------------------------------
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

Reply via email to