2.33. Get the server's response from the request objectIf 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 */ } }
|