Kind of remove the A out of AJAX. You can change any synchronous function call into an asynchronous RPC call. Remember, RPC calls might fail - you need to handle that case properly. You don't have that same problem with regular function calls.
regular logic is // code preceding function call // function call // code after function call, potentially using result asynchronous logic is // code preceding function call // asynchronous function call with result handler result handler's onsuccess method processed with code after function call, potentially using result. result handler's onfailure method does appropriate error handling. This is a fundamental limitation of how AJAX is implemented because browser's are single threaded (otherwise you would lock up the UI waiting for a server response). On Mon, Apr 27, 2009 at 12:33 PM, jn93 <[email protected]> wrote: > > hi. i understand how to do asynchronous rpc calls from the client- > side. > > is it also possible to use *synchronous* rpc calls? we have interface > for it. > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
