0

I am trying to access external URL from my MVC application. Below jquery code is used for connecting to bbc.co.uk. But i am getting error jqXHR.status == 0

$("#Contactname").change(function () {
        $.ajax({
            dataType: "html",
            method: "GET",
            url: "http://news.bbc.co.uk",
            success: function (result) {
            },
            error: function (jqXHR, exception) {
                AjaxError(jqXHR, exception, "#Contenet");
                alert(2);
            }
        });
    });   

Can some body show me why i am getting status=0 error.

tereško
  • 58,060
  • 25
  • 98
  • 150
user123
  • 13
  • 4

0 Answers0