Hour 18. Solving Ajax Problems

What You’ll Learn in This Hour

• Using browser tools to debug Ajax

• Common Ajax errors

• Some programming gotchas

In an earlier hour, you tried your hand at debugging JavaScript programs using the tools commonly available within, or as extensions to, various modern browsers. Ajax adds a further layer of complexity to code debugging due to the server calls and responses initiated from the page by the XMLHttpRequest object. In this hour you learn how to analyze this traffic to solve program errors. We also discuss some more general problems you might come up against when developing Ajax applications and consider some possible solutions.

Debugging Ajax Applications

Earlier in the book you encountered discussions ...

Get Sams Teach Yourself JavaScript™ in 24 Hours, Fifth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.