One thing you will need to know is that you can only run this from a web server. You can't open the file directly on your browser and try it, it won't work. That's why I'm using brackets because it allows for a preview.
As mentioned in the presentation last week, you only need three main components for a successful AJAX request. They are:
var xhr = new XMLHttpRequest(); //creates a new ajax request and assigns to variable xhr xhr.open("METHOD","url",true); //opens the xhr request passing in three arguments: the method (get/post), url, and true/false for asynchronous/synchronous xhr.send(); // make the AJAX request
Ready to star coding? Watch the video below and follow along!
Remember to checkout the Resources section below for associated downloadable content, JSFiddle links, and other resources. Watch the video and follow along!
Have questions? Ask in the comments section on YouTube or Disqus below.