Skip to content

Instantly share code, notes, and snippets.

@davetaz
Created November 19, 2014 14:57
Show Gist options
  • Save davetaz/17936c64aaccb746dd4a to your computer and use it in GitHub Desktop.
Save davetaz/17936c64aaccb746dd4a to your computer and use it in GitHub Desktop.
ODI courses test
<ul id="courses"></ul>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script type="text/javascript">
$( document ).ready(function() {
$.getJSON( "http://theodi.org/courses.json?callback=?", function( data ) {
courses = data.results;
for (i=0;i<courses.length;i++) {
course = courses[i];
console.log(course["title"]);
}
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment