I remember really struggling with cross-domain AJAX requests. I wish they'd talked about that.
Also, its quite likely that one would be using jQuery (or some other lib.) to do all of this in practice.
Also, its quite likely that one would be using jQuery (or some other lib.) to do all of this in practice.