javascript - jsonp callback function not recognized -


i've ajax called like

$.ajax({     url: geturl,     type: 'get',     crossdomain: true,     data: { url: url, token: token },     datatype: 'jsonp',     jsonpcallback: "getjsonp",     success: function () { /* */ },     error: function() { console.log('failed!'); } }); 

and jsonpcallback function

function getjsonp(data) {     console.log(data.content); } 

on dev console, see it's returned properly

enter image description here

however still uncaught referenceerror: getjsonp not defined. how should fix this?


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -