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

Reply via email to