Head Rush Ajax (Head First)

3.23. Interpreting the server's response

The server's response looks like this when it's received by the serveDrink() callback:

We really need to split this response into two parts. Here's the response from the server-side coffee-making script. 1Jim coffeemaker.php "1" indicates that it's the first coffee maker that brewed this order. "Jim" is the name of the person who placed this order.

Категории