I am trying to show json data with pure.js. It works when the json is hardcoded right in the page but doesn't when I try to get the actual live json from my url. Please help me connect to the live json via my url.
<script src="http://beebole.com/pure_git/libs/pure.js"></script>
<p>Item: <span id="item" class="item"></span></p>
<p>Count: <span id="count" class="count"></span></p>
<p>Group: <span id="group" class="group"></span></p>
// Hard coded - works
var data = {"item":"chm","count":1,"group":"truthsponsors"}
$.getJSON('http://arbitrarycounter.com/vb/truthsponsors/chm/', function(data) {
// My attempt to retrieve the live json - doesn't work
});
$('#item').autoRender(data);
$('#count').autoRender(data);
$('#group').autoRender(data);
*Cross origin sharing has been enabled on the server.