I am trying to simply send an alert with a “name”, but It doesn’t seem to work. Advice?
$(document).ready(function() {
$.getJSON("http://api.crunchbase.com/v/1/companies/permalink?name=Google", function(data) {
alert("Hello: " + data.name);
});
});
Here is what the JSON contains:
{"crunchbase_url": "http://www.crunchbase.com/company/google",
"permalink": "google",
"name": "Google"}
Normally you’d use JSONP here by adding
&callback=?to your URL, however a JSONP callback is not supported in this case, from the crunchbase API documentation:The bottom line is the most important, you’ll see that this: http://api.crunchbase.com/v/1/companies/permalink?name=Google&callback=callme still results in regular JSON, not JSONP.