ajax - Access response data in JSONP request -


i have sap gateway odata-service , local tomcat apache server. sapui5 client deployed in tomcat , requests odata-webservice sap gateway remote server. in fact there cross origin domain error. set header "access-control-allow-origin" in odata-webservice , sapui5 client requests jsonp, error because sap gateway can't handle jsonp responses.

my code: enter image description here

the error: "uncaught syntaxerror: unexpected token :"

the error depends on incompatibility of sap gateway jsonp.

if in network requests find one: enter image description here

it json (not jsonp) response webservice.

so question. there possibility access response? tried access via lot of callbacks success, error, fail, done, always, complete, , on. no chance...

thanks , best regards

$.ajax({    type: 'get',     url: url,     async: false,     jsonpcallback: 'jsoncallback',     contenttype: "application/json",     datatype: 'jsonp',     success: function(response) {        //this you'll data/response        console.log(response) ;    },     error: function(e) {        console.log(e.message);     } }); 

update:

problem context.. there value _1453458442107=:1 enter image description here

check , encode it.


Comments

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -