Ok, you're right, the google request of course cannot work. New try with  a
same-domain request

1) Error outside the event handler
http://demo.qooxdoo.org/devel/playground

var request = new
qx.io.remote.Request("http://demo.qooxdoo.org/devel/playground/";);
request.addListener("completed",function(response){
 this.info("Done!");
});
request.send();
thisWillThrowAnError();

Firebug:
100697 playground.Application[94]: Starte Anwendung' ...playground.js (Zeile
13627)
GET http://demo.qooxdoo.org/devel/playground/?nocache=1252426328229
GET http://demo.qooxdoo.org/devel/playground/?nocache=1252426328229
200 OK
                64ms    playground.js (Zeile 13941)
100795 qx.io.remote.Request[fo]: Done!   playground.js (Zeile 13627)
103334 playground.Application[f]: ReferenceError: thisWillThrowAnError is
not defined

2) Error inside the event handler

var request = new
qx.io.remote.Request("http://demo.qooxdoo.org/devel/playground/";);
request.addListener("completed",function(response){
  this.info("Done!");
  thisWillThrowAnError();
});
request.send();

205186 playground.Application[94]: Anwendung gestartet playground.js (Zeile
13627)
205249 qx.io.remote.Request[g9]: Done! playground.js (Zeile 13627)
210008 qx.io.remote.RequestQueue[99]: Timeout: transport g7playground.js
(Zeile 13627)
210012 qx.io.remote.RequestQueue[99]: 5017ms > 5000msplayground.js (Zeile
13627)
210015 qx.io.remote.Exchange[g7]: Timeout: implementation g8playground.js
(Zeile 13627)
210508 qx.io.remote.RequestQueue[99]: Timeout: transport gbplayground.js
(Zeile 13627)
210511 qx.io.remote.RequestQueue[99]: 5338ms > 5000msplayground.js (Zeile
13627)
210533 qx.io.remote.Exchange[gb]: Timeout: implementation gcplayground.js
(Zeile 13627)

Ok, this is not the newest trunk, so the timeout is still there. But you can
see that the info message is logged to firebug, but, unlike 1), no error
message "ReferenceError: thisWillThrowAnError is not defined".

That's what, at least in my configuration (FF 3.5.2 on Mac OS 10.5) is
causing the problem - no exception is thrown to indicate the error.

I hope now it is clear - seems to be in line what others have reported.

Thanks,

Christian  


Derrell Lipman wrote:
> 
> On Tue, Sep 8, 2009 at 10:03, panyasan <[email protected]> wrote:
> 
>>
>>
>> Derrell Lipman wrote:
>> >
>> > 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 ;-)
>>
> 
> I think we are, but I think we're somehow getting different results.
> 
> 
>> 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();
>>
> 
> This example can't work. It's a cross-domain request, without specifying
> cross-domain (which wouldn't work for www.google.com anyway). What I get
> in
> Firebug is "Access to restricted URI denied". I get the same thing
> regardless of whether the call to the unknown function is inside the
> listener or outside of it.
> 
> Let's return to the phpinfo.php usage. You'll see in my previous message
> that it *did* display the message:
> 
> thisWillThrowAnError is not defined
> }\n
> 
> after saying "done!" which is exactly what it should have done.
> 
> If you're not seeing that when you run the application, then there's
> something different in the execution environments between your set up and
> mine. I'm using Firefox 3.0.13 with Firebug 1.4.2 running on Linux.
> 
> ... or I'm still not understanding what you think should be happening,
> which
> isn't happening. Do you expect something other than an "is not defined"
> error to be displayed?
> 
> Derrell
> 
> ------------------------------------------------------------------------------
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/qx.io.remote.*%3A-State%3A-timeout-tp25276953p25349371.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

Reply via email to