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.
the error: "uncaught syntaxerror: unexpected token :"
the error depends on incompatibility of sap gateway jsonp.
if in network requests find one:
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
check , encode it.
Comments
Post a Comment