Failed to load

edited August 2018 in Technical questions

Say me pls, why this query failed to load?
I also write a shader for access.
Help me pls

var url = "https://kladr-api.ru/api.php";
var vars = ({
  oneString: '1', 
  limit: '5', 
  withParent: '1',
  query:value
});
webix.ajax().headers({"Access-Control-Allow-Origin":"*"})
.get(url, vars, function (data) {
   var result = JSON.parse(data);
   if(result.result && result.result.length){
        for(var i = 0; i < result.result.lenght; i++){
             res.push(result.result[i].fullName);
        }
        this.parse(res);
    }
});
Tagged:

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion