Hi all
i’m try to do some test with webix jet;
first i would try to replace data,js retrive data, calling a my web service …
i insert in data.js this web service call ( i know that i should do that in records.js but for testing …)
init(view){
webix.jsonp("http://192.168.1.1:10072/jsondemo/wcont.pgm", {}, function(data){
view.parse(data);
but i receive error :
Uncaught SyntaxError: Unexpected token : wcont.pgmjsonp=webix.jsonp.webix_jsonp_1514502758519:2
if i click in wconto.pgm … i see the Json result of my web service
"{
"success": true,
"errmsg": "",
"items": [
{
"id": 0,
"name": "CUST",
"country": "",
"zip": 0,
"city": "",
"street": ""
}, ........
"
and the error seems to be at first line at the “true” values …
can some one help me to understand where am i wrong ?
Keep in mind that i had to replace webix.ajax() with webix.jsonp (i received error "… No ‘Access-Control-Allow-Origin’ header is present …) and that with webix.ajax() in other App, the web service and the relative load table works fine