Wednesday, 15 April 2015

javascript - Why data.reponseText is empty -


Why does not data.reponse text in this code, while it works in the browser ?

  & lt ;! DOCTYPE HTML & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "jquery.xdomainajax.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Window.onload = function () {$ .get ('http://www.vtb24.ru/_layouts/Vtb24.Pages/CurrencyRateAjax.aspx', function (data) {console.log (data.responseText);}) ; }; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

You can find "jquery.xdomainajax.js" here -

Thanks in advance.


No comments:

Post a Comment