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. |