you’re on your way 4
109
ajax requests
function updatePage() {
if (request.readyState == 4) {
/* Get the response from the server */
var customerAddress = request.responseText;
/* Update the HTML web form */
}
}
If the ready state is “4”, the browser will have put the server’s response in the
request object’s responseText property:
The browser will store the
server’s reponse in the
responseText property.
The server
is returning
the
customer’s
address.
Get the server’s response from the request object
Blueprints, revisited
You haven’t fogotten about the diagram and notes you drew up for developing
the Break Neck application, have you? Take a moment to look back at what
you wrote down on pages 73, and see how that compares to the steps
we’ve taken so far. This is your chance to make a few more changes before
we hit the home stretch.
In the space below, write down what you think still needs to happen to
complete the Break Neck application.