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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.