Tuesday, September 11, 2007

Ajax Data formats

Ajax is language agnostic on the server. It doesn’t matter what server-side language one use for business logic. However, when you are requesting data from the server, the data that’s sent from the server must be formatted in a way that the browser can understand. Server-side programming language needs to return data in one of following ways:
  • HTML
  • XML
  • JSON
  • Text
There are some other formats which we won't discuss.
I’m going to examine each data format so that you can make an informed decision as to
which one best suits different kind of applications. I will have sample for each one format.

No comments: