Chapter 12. Abstracting Browser Differences: Ajax
In this chapter we will get to know
XMLHttpRequest better by implementing our own higher level API using test-driven development. Doing so will allow us to touch ever so lightly on the inner workings of an “ajax call”; it will teach us how to use test-driven development to abstract browser inconsistencies; and most importantly, it will give us an introduction to the concept of stubbing.
The API we will build in this chapter will ...