Hi Daniel,
I couldn't reproduce your issue with the current trunk (rev. 20668). I
have taken a look at the _oncompleted implementation on
qx.io.remote.RequestQueue and it seems to me, that your listener
function, cause an exception. Could you please change your listener to:
<code>
this.__request.addListener("completed", function(e)
{
try {
this.__data = e.getContent();
if(qx.util.Json.parse(this.__data)!= 1 &&
qx.util.Json.parse(this.__data)!= 0) {
this.debug("ok");
} else {
this.debug("error");
}
} catch(e) {
this.error("Exception: " + e);
}
},this);
</code>
Does this help?
Cheers,
Chris
Daniel Hirtzbruch schrieb:
> Well - after one more day of searching and testing I think I've done
> everything I'm able to.
> I removed all but one requests from the whole app, but the problem persists
> in current trunk. That's the request's code:
>
> <code>
> this.__request = new
> qx.io.remote.Request("backend/session/checksession.php", "POST",
> "text/plain");
> this.debug("HASH "+this.__request.$$hash);
> this.__request.addListener("completed",function(e) {
> this.__data = e.getContent();
> if(qx.util.Json.parse(this.__data)!=1 &&
> qx.util.Json.parse(this.__data)!=0) {
> this.debug("ok");
> }
> else {
> this.debug("error");
> }
> },this);
> </code>
>
> What's wrong with this code? There's no bug report or mailing list message
> concerning this kind of problem, so I'm still thinking that I'm doing things
> wrong.
> Something must have changed with the request code in QooxDoo - all of my
> requests where already stable and running for about one month - now I don't
> get them working. To check if it's a code change in QooxDoo I reverted to
> revision 20000 (about 2 months old, I know...) and the error doesn't occur
> anymore.
>
> I hope anybody is able to help me.
> Thanks in advance,
>
> Daniel
>
--
Christian Schmidt
Software Entwickler
1&1 Internet AG - Web Technologies
Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
[email protected]
Amtsgericht Montabaur / HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas
Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver
Mauss, Jan Oetjen
Aufsichtsratsvorsitzender: Michael Scheeren
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel