You can't use the data until it turns up. What is the alternative? If you have come from a desktop background, you need to start thinking in a different way. If you send someone an email, you don't stop work until you get a reply. You fire off emails as you see fit, and deal with the responses when they come in. Same with Ajax.
Ian http://examples.roughian.com 2009/10/18 Tomek <[email protected]> > > So if I want to use my XMLFile object in Main class I have to define > AsyncCallback and then use my object in onResponseReceived function? > That will be a shame because I will have to do everything inside this > function, later I would have to do the same with getting info from > REST. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
