jsonp callback function not recognized

I've an ajax called like

$.ajax({     url: getURL,     type: 'GET',     crossDomain: true,     data: { url: url, token: token },     dataType: 'jsonp',     jsonpCallback: "getJSONP",     success: function () { /* do something */ },     error: function() { console.log('Failed!'); } }); 

and a the jsonpCallback function as

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

On the dev console, I see it's returned properly

jsonp callback function not recognized

However I still get a Uncaught ReferenceError: getJSONP is not defined. How should I fix this?

Replay

Category: javascript Time: 2016-01-16 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.184 (s). 12 q(s)