I’ve just made my first bit of Ajax!
Spent most of the time wondering why it didn’t work. The answer? It’s “readyState” not “readystate”. Gah!
I found a very useful site that explains the readystates in an plain, easy to understand English. Here’s an excerpt:
two means your data has been loaded the requested data that if you acquired of the server that is been loaded and its not yet complete but it been loaded the processing almost has finished