Use GWT RPC (or you can use HttpRequestBuilder if your backend is not Java). It is an asynchronous mechanism therefore client's thread is released as soon as the request is fired off, the response being fielded later in a separate Callback method. The UI is therefore free for the duration of the round trip to the server.
On Feb 1, 1:53 am, "[email protected]" <[email protected]> wrote: > Hello All, > > I'm new to AJAX and GWT in general. I have a project in mind and would > like some hints as to how I should set my program up. I want to have a > list that self-updates asynchronously by querying a remote server at > certain intervals, let's say every 1 second. It would be something > such a list that updates flight information or train departures. > > My question is how do I have each row in the list update without > disrupting the rest of the site? I know JavaScript doesn't support > multi-threading. The only method I could think of off the top of my > head is to load the page and grab the initial data with a loop at the > end executing at 1 second intervals. > > Thanks in advance, > Mike --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
