Hey Guys ... i am new to AJAX and am still learning it. I have a swing GUI applet that basically pulls data from an XML string generated by another webapp. The applet refreshes the data every once in a while. Could i use AJAX here to refresh the data from that string?
Yes, it sounds like you could replace the heavy-weight applet with light-weight Ajax.
If the webapp you will be contacting is on a separate server, you'll need to employ the use of a server-side proxy to get around the Ajax security sandbox. Chapter 12 of the book covers this in detail when learing how to use Ajax with remote web service APIs like Yahoo! Maps, Google and Flickr.
Originally posted by Praful Gupta: Could i use AJAX here to refresh the data from that string?
You may also want to consider server-initiated rendering approaches, such as Ajax Push (with ICEfaces) or Reverse Ajax (with DWR). This allows an event on the server to trigger an update of the browser page without polling.