When you are working synchronously, the line of code immediately after the
send() command will not execute until the request is complete or the request
fails. That is the difference between the two. In Async mode, code execution
will continue on after the send() command without waiting.
Other then that your code looks OK. the remote Request is pretty easy to
use.
Jim
www.D4PHP.org
www.D4PHP-Hosting.com
On 13 Sep 2007 06:28:44 -0000, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
>
> hello,
>
>
>
> I am trying to implement synchronous request.
>
>
>
> Example following
> these lines work
>
>
>
> var req = new qx.io.remote.Request(uri, "GET", qx.util.Mime.TEXT);
>
> req.setAsynchronous(false);
>
>
>
> req.addEventListener("completed", function(e)
> {
>
> this.__application.__getdump_content = e.getData().getContent();
>
> // do my processing of response content
>
> });
>
>
>
> Is there a way to get response
> in synchronous way ? Something like this (not working example)
>
>
>
>
>
> req.setAsynchronous(false);
>
> req.send();
>
>
>
> if (!req.isCompleted()) {
>
> this.debug("Request getDump failed:
> "+uri);
>
> return null;
>
> };
>
>
>
> var response_text = req.getResponseText(false);
>
>
>
> // do my processing of response here
>
>
>
> Thank you
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel