Chapter 4. Rendering the Response with XHTML and CSS

Now that we have covered how to request data with the XHR object and parse the response, we are ready to render and display the data in a browser. There are many ways to handle displaying the data that we receive from an XHR response; in this chapter, we will be focusing on using XHTML and CSS. XHTML and CSS will render our data and keep it easy to manipulate through JavaScript via DOM. This solution is the perfect answer to rendering Ajax data and creating easy-to-manipulate HTML elements.

Get Ajax for Web Application Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.