I am trying to load data from an external .js file containing a json representation of a data set. I canβt understand for life how to access the data inside the page. I am sure it is very simple, and I missed something simple! right now, I'm trying this:
$(document).ready(function(){ $.getJSON("http://api.crunchbase.com/v/1/company/xobni.js", function(data){ alert(data.company_url); }); });
... which is clearly wrong, because nothing is happening. I tried loading it into the <script> , but firebug tells me that it didnβt even load. how could i mess it up Anyway, I am ready to pull my hair out, and I believe that it will take about 15 seconds to understand.
json javascript jquery
carly
source share