Skip to content

Instantly share code, notes, and snippets.

@cbrumelle
Created March 2, 2010 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbrumelle/319407 to your computer and use it in GitHub Desktop.
Save cbrumelle/319407 to your computer and use it in GitHub Desktop.
<!-- include the data file. This dumps everything into a JS variable called 'data' -->
<script src="/data/genres.js" type="text/javascript"></script>
<!-- print out some trivial data to show that it's loaded -->
<script>
$('container').update("Total count from trackdata is: " +
data.trackdata.total +
" <br />and total count from listendata is: " +
data.listendata.total);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment