I am using this technique to fulfill required functionality. I am calling
method which has other functionality and calling that method from onComplete
method.

Thanks for support


On Tue, Aug 26, 2008 at 1:12 AM, alex.d <[EMAIL PROTECTED]> wrote:

>
> By:
>
> HTTPRequest.asyncGet("AnyPage.jsp", new ResponseTextHandler()
> {
>  public void onCompletion(String responseText) {
>    final JSONValue jsonValue = JSONParser.parse(responseText);
>     ToDoAfterTheResponsIsOverFunction();
>   }
> });
>
> The ToDoAfterTheResponsIsOverFunction() will be called AFTER the
> request is successfuly over ;)
>
> On 26 Aug., 07:36, "Feroz Gul Pathan" <[EMAIL PROTECTED]> wrote:
> > Thanks for reply
> > I used HTTPRequest.asyncGet ... method to make a request. After making a
> > call (request) this will proceed to next operation and don't wait for the
> > response. How we can block operation until response will be completed and
> > incompletion(String responseText) method will be executed successfully.
> How
> > can we make this asynchronous request synchronous?
> >
> > sample code is here.
> >
> > HTTPRequest.asyncGet("AnyPage.jsp", new ResponseTextHandler()
> > {
> >                     public void onCompletion(String responseText) {
> >                        final JSONValue jsonValue =
> > JSONParser.parse(responseText);
> >                        JSONObject jsonObject;
> >
> >                            }
> >                    });
> >
> > Thanks
> >
> > On Mon, Aug 25, 2008 at 9:53 AM, Ian Bambury <[EMAIL PROTECTED]>
> wrote:
> > > Whatever you are running after the request, run it after the response.
> >
> > > I.e. make the request the last thing you do when processing some input
> or
> > > other, and then in the onComplete, carry on with whatever it is you
> want to
> > > do.
> >
> > > 2008/8/25 feroz <[EMAIL PROTECTED]>
> >
> > >> Hi
> >
> > >> How we can stop control until we receive complete response in GWT.
> > >> Control will execute next source before the completion of response.
> > >> how we can stop control until response will be processed completely.
> > >> thanks
> >
> > > --
> > > Ian
> > >http://examples.roughian.com
> > > ___________________________________
> >
> > > Life is either a daring adventure or nothing.
> > > Security is mostly a superstition.
> > > It does not exist in nature.
> > > - Helen Keller
> > > ___________________________________
> >
> >
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to