Derrell Lipman wrote: > > On Tue, Sep 8, 2009 at 03:04, panyasan <[email protected]> wrote: > >> >> Hi Derrell, >> >> thank you, but I don't think this is a question of build or source. The >> 'this.info("done")' command is executed correctly. The offending >> "thisShouldThrowAnError()" command is what doesn't do anything in the >> handler code. When I move it outside the handler code and to the end of >> the >> playground code, like so: >> >> var request = new qx.io.remote.Request("http://localhost:8080/phpinfo.php >> "); >> // this must point to a really existing file >> request.addListener("completed",function(response){ >> this.info("done!"); >> }); >> request.send(); >> thisWillThrowAnError(); >> >> The error is correcly alerted. I don't think there should be any >> different >> logging levels for event handling code and non-event handling code. And >> syntax errors should be caught regardless of source or build anyways. Do >> you >> see what I mean? >> >> > I get this (slightly reformatted due to copy/paste issues) in Firebug. > Note > the last three lines: it says "done!" and then shows the error. Is this > different than you get? > > 017403 playground.Application[95]: Starting application '' > ... Native.js (line 55) > GET http://localhost/services/phpinfo.php?nocache=1252416039657 200 OK > 53ms XmlHttp.js (line 323) > 017416 playground.Application[95]: Successfully > started. Native.js (line 55) > 017487 qx.io.remote.Request[bq]: > done! > Native.js (line 55) > thisWillThrowAnError is not defined > }\n > >
Hi Derrell, I don't know if we are talking about the same thing ;-) Let's use a slightly different example which works online: This works correctly, alerting the error: open http://demo.qooxdoo.org/devel/playground/ and insert this code: var request = new qx.io.remote.Request("http://www.google.com"); request.addListener("completed",function(response){ this.info("done!"); }); request.send(); thisWillThrowAnError(); 080217 playground.Application[94]: Starte AnwendungHello World' ... 080403 qx.io.remote.Exchange: Unknown status code: 0 (4) 081657 playground.Application[f]: ReferenceError: Can't find variable: thisWillThrowAnError whereas, if you insert this code: var request = new qx.io.remote.Request("http://www.google.com"); request.addListener("completed",function(response){ this.info("done!"); thisWillThrowAnError(); }); request.send(); you get this in the log (FF 3.5.2, Mac OS 10.5) 202989 qx.io.remote.Exchange: Unknown status code: 0 (4) 203014 playground.Application[94]: Starte AnwendungHello World' ... 203016 playground.Application[94]: Anwendung gestartet and this in FireBug (1.4.2) 006595 playground.Application[94]: Starte Anwendung' ...playground.js (Zeile 13627) 006613 playground.Application[94]: Anwendung gestartetplayground.js (Zeile 13627) 006648 qx.io.remote.Exchange: Unknown status code: 0 (4)playground.js (Zeile 13627) -- View this message in context: http://www.nabble.com/qx.io.remote.*%3A-State%3A-timeout-tp25276953p25346905.html Sent from the qooxdoo-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------------ 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
