Section 2.33. Get the server s response from the request object


2.33. Get the server's response from the request object

If the ready state is "4", the browser will have put the server's response in the request object's responseText property:

     function updatePage() {       if (request.readyState == 4) {         /* Get the response from the server */         The browser will store the server's reponse in the responseText property.var customerAddress = request.responseText;The server is returning the customer's address.         /* Update the HTML web form */       }     } 

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.





Head Rush Ajax
Head Rush Ajax (Head First)
ISBN: 0596102259
EAN: 2147483647
Year: 2004
Pages: 241

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net