After listing 11-28 it says:
The complete callback has access the ajax response and can pass it to a third-party function.
It should say:
The complete callback has access to the ajax response and can pass it to a third-party function.
---
After listing 11-29 it says:
Using the application/json content type allows Prototype to automatically evaluate the JSON passed as body of the response, which is preferred as of returning it via the header, because...
I think is should be:
Using the application/json content type allows Prototype to automatically evaluate the JSON passed as the body of the response, which is preferred to returning it via the header, because...
---
In the yellow box it says:
These facilitate the integration of JSON arrays and Ajax in general. This would enable to use of a more PHP like code:
I think it should be:
These facilitate the integration of JSON arrays and Ajax in general. This would enable the use of more PHP like code:
or even:
These facilitate the integration of JSON arrays (and Ajax in general) and enable the use of more readable native PHP code: