0

I'm going to go crazy.

When I i jQuery Ajax function to a request, I get in console this error

OPTIONS [myURL] net::ERR_NAME_NOT_RESOLVED

It is possible to get the error text net::ERR_NAME_NOT_RESOLVED in my JavaScript?

I read all documentation about jQuery Ajax but I can't understand where I can find this message.

Thanks a lot.

Luca Romano
  • 116
  • 7

1 Answers1

0

This is the simplified Ajax call. The URL is simply a variable of a WebService.

$.ajax({
    method: "GET",
    url: myURL,
    dataType: "json",
})
.done(function(response) {
    console.log(response)
})
.fail(function(jqXHR, textStatus, errorThrown) {
    console.error("------AJAX error");
});
Luca Romano
  • 116
  • 7