views:

20

answers:

1

Hi

I'm looking for a straight forward list(with any notable information to match the point) of the separate processes involved from initiating the request object to the user seeing the end result in AJAX?

Thanks.

+1  A: 

Okay, I'll give it a shot.

  • Initiate a request to the server from JavaScript. At some level this is XmlHttpRequest but you are better off using a library such as jQuery to help.
  • Get a response back from the server. Usually the response is JSON or HTML. Using XML is not recommended because parsing XML in JavaScript is not fun.
  • Update the HTML DOM to show the results from the server. This is very application-specific. But again using jQuery or some other library makes this easier.
jkohlhepp
You don't need to parse the XML in JavaScript. That's what `responseXML` is for.
Matthew Flaschen