Skip to content

Instantly share code, notes, and snippets.

@soffes
Forked from jamesfinley/Book Call: Youversion
Created March 10, 2009 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save soffes/76921 to your computer and use it in GitHub Desktop.
Save soffes/76921 to your computer and use it in GitHub Desktop.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title></title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var list = $('ul#books');
$.ajax({
url: 'http://api.new.youversion.com/1.0/bible/books.json',
dataType: 'jsonp',
success: function(data) {
$.each(data.response.data, function(i, val) {
list.append('<li>'+val.human+'</li>');
});
}
});
});
</script>
</head>
<body>
<ul id="books"></ul>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment