Getting Started

Before we create any of the JavaScript objects, which will become our data grid component, we will need to create an XML file to hold our data and an HTML file to display the component. This section is a brief description of how to create the files we need in order to get started. The XML for this chapter is actually the same structure we created in Chapter 3, “The Response.” This chapter will take the XML and render it into a custom data grid component that we will create step by step in the next section. The only difference is that we will modify the actions to become alerts in order to show an example of how the actions work. Here is an example of the new action in the action attribute:

<items action="alert('Grace Hopper');" ...

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.