ajax example

HTML

<h3>Documentation</h3>
<p>See the following <a href="https://morph.io/documentation/api?scraper=rubenwoudsma%2Fprofscraper1314">source documentation</a> regarding the API</p>
<textarea id="log"></textarea>

CSS

#log{
    width: 500px;
    height:200px;
}

JavaScript

var i = 0;

function log(s) {
    $('#log').val($('#log').val() + '\n' + (++i) + ': ' + s);
}

$.ajax({
    url: 'https://api.morph.io/rubenwoudsma/profscraper1314/data.json?key=TNBd3rYa1tgWDy0ZYSux&query=select%20*%20from%20pcteamplayers%20limit%2010',
    dataType: 'jsonp',
    success: function(data) {
        log('received data: ' + JSON.stringify(data, undefined, 2));
    }
});

log("ajax jsonp request made");