- You can do AJAX calls with JavaScript or JQuery, the choice is yours. With that said, I recommend using JQuery due to the fact that JQuery already has many features built-in the language. For instance, there is a get method in JQuery which already creates the xmlHttpRequest object so you don't have to do that.
- As seen within the example, Professor Beveridge instantiated a new XMLHttpRequest object (AJAX object) and provided a callback function to it. A step back. He provided the callback function to the onreadystatechange property which is an EventHandler that is called whenever the readyState attribute changes. Additionally, Professor Beveridge checks the state of the newly instantiated object. He only checks the readyState however in my personal opinion, he should have also checked for the status of the object which would be done like this: http.status == 200. There is more documentation here which I highly recommend reading.
- In general, there is a lot going on in this slide! It is all awesome :D