No.
If you did that, the whole browser would lock up until the call returned.

You *could* run a timer and keep checking if the call had returned, but
there is no point since when the call has returned, the callback function
can do the work.

You need to move any logic that needs the requested data to the callback (or
have the callback make some method call on the object that needs the data).

If you don't want to do that, you shouldn't really be using Ajax. That is
what Ajax does.

If you want to be a bit more specific as to your needs, or can come up with
an example which mirrors what you are doing, you'll probably get more
specific help.

If you need to stop user input while the call is made, then the usual way is
to put up a 'loading...' message, either over the whole screen, or just in
the widget which is waiting.

Ian

http://examples.roughian.com


2009/3/19 [email protected] <[email protected]>

>
> is there a way to force callback to be excuted before next line?
> >
>

--~--~---------~--~----~------------~-------~--~----~
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