I
I
Ivan Korsakov2016-08-10 17:08:37
JavaScript
Ivan Korsakov, 2016-08-10 17:08:37

How to find response data?

I send a GET request via the jsonp protocol to the server, I receive a response, in the browser in the developer panel in the Response / Preview tabs I see the necessary data, but I can’t display them.

Request example:

https://jsfiddle.net/1qjotry4/1/

$.ajax({
  url: "http://kladr.ilp-crm.ru/city.php?prefix=москва",
  dataType: "jsonp",
  type: "get",
  complete: function (res) {
    // some code
}
});


Tell me how to get to the right data, thanks in advance to everyone!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DTX, 2016-08-10
@DirecTwiX

The server to which the request is sent must support JSONP, but it does not - the response is simple JSON.

R
Roman Ogarkov, 2016-08-10
@ogarich89

Cross-domain request for help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question