There is an API with a schedule. I do a cross-domain query, and it seems to work, because it appears in chrome in resources (link to screen http://i67.fastpic.ru/big/2014/0927/5c/28f2ecf7369ba09e5eaf0cbe8d27f35c.png ), but the information which I need, does not display. And if you take the data and stuff it into a file, for example, get.json, and put it on your server, everything works. Tell me, please, what is the error?
<html> <head> <script type="text/javascript" src="jquery-1.10.2.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ var url = "http://api.rozklad.org.ua/v1/groups/561/lessons/?week=1&day=1"; $.ajax({ url : url, type : "GET", dataType : "jsonp", success : function(msg){ document.getElementById('paste').innerHTML = msg[0].day_name } }); }); }); </script> </head> <body> <div id="paste"> </div> <button>Send</button> </body> </html>