AJAX URL request doesn't work from desktop
- by Aaron
Running this simple AJAX with WAMP localhost I can pull JSON from a web address.
$(document).ready(function(){
$.ajax({
url: 'http://time.jsontest.com/',
dataType: 'jsonp',
success: function(json)
{
console.log(json);
}
});
});
However I cannot connect if I try running normally through a browser, why is that?
Google CDN:
<src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js">