ajax - Problem with CrunchBase API and jQuery $.getJSON -


i trying send alert "name", doesn't seem work. advice?

$(document).ready(function() { $.getjson("http://api.crunchbase.com/v/1/companies/permalink?name=google", function(data) {    alert("hello: " + data.name);   });  }); 

here json contains:

{"crunchbase_url": "http://www.crunchbase.com/company/google",  "permalink": "google",  "name": "google"}    

normally you'd use jsonp here adding &callback=? url, however jsonp callback not supported in case, crunchbase api documentation:

list entities

to retrieve list of of entities in namespace on crunchbase, use url of form:

http://api.crunchbase.com/v/1/<plural-namespace>

the plural available namespaces are:

  • companies
  • people
  • financial-organizations
  • products
  • service-providers

this action not support javascript callbacks.

the bottom line important, you'll see this: http://api.crunchbase.com/v/1/companies/permalink?name=google&callback=callme still results in regular json, not jsonp.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -