Tuesday, January 17, 2006

QuirksBlog: The AJAX response: XML, HTML, or JSON?

QuirksBlog: The AJAX response: XML, HTML, or JSON?: "The AJAX response: XML, HTML, or JSON?

Since my last AJAX project I've increasingly been wondering about the "ideal" output format for the AJAX response. Once you've succesfully fired an AJAX request, what sort of response should the server give? An XML document? An HTML snippet? A JSON string which is converted to a JavaScript object? Or something else? In this entry I'd like to discuss the three formats, with examples, and ask you which format you've used in your practical AJAX applications."

No comments: