You could use return in your localJSON function?
Code:
function localJSON() {}
$(document).ready(function() {
path = 'http://services.****.com/stories/popular?appkey=http%3A%2F%2Fwww.roberthenrylowe.com&type=javascript&callback=localJSON&count=10';
$('head').append('<script name="jsonObject" type="text/javascript" src="' + path + '"></script>');
return path;
});
Code:
<script src="http://services.****.com/stories/popular?appkey=http%3A%2F%2Fwww.roberthenrylowe.com&type=javascript&callback=localJSON&count=10" type="text/javascript" name="jsonObject">
var test = localJSON({"timestamp":1188926432,"total":"3758"...});
</script>
Bookmarks