[JSON and AJAX example] example of AJAX javascript code #tags: AJAX, JSON
var ourRequest = new XMLHttpRequest();
ourRequest.open('GET', 'www.json-url.com');
ourRequest.onload = function(){
var ourData = JSON.parse(ourRequest.responseText);
};
Allows for on-the-fly access to data