javascript - Why data.reponseText is empty -
why data.reponsetext
in following code not contain while works in browser?
<!doctype html> <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script type="text/javascript" src="jquery.xdomainajax.js"></script> <script type="text/javascript"> window.onload = function() { $.get('http://www.vtb24.ru/_layouts/vtb24.pages/currencyrateajax.aspx', function(data) { console.log(data.responsetext); }); }; </script> </head> <body> </body> </html>
you can find "jquery.xdomainajax.js" here -- https://github.com/padolsey/jquery.fn/tree/master/cross-domain-ajax
thanks in advance.
Comments
Post a Comment