Skip to content

Instantly share code, notes, and snippets.

@moyhig
Created November 6, 2012 09:03
Show Gist options
  • Save moyhig/4023593 to your computer and use it in GitHub Desktop.
Save moyhig/4023593 to your computer and use it in GitHub Desktop.
2012/11/06: Jaxer vs. jQuery.ajax
<script runat="server">
jQuery(function($){
$.getJSON("https://api.github.com/gists/3985489?callback=?",
function(data) {
$('div#x1').append(JSON.stringify(data, null, 4));
$('div#x2').append(data['data']['files']['test.md']['content']);
});
});
</script>
<pre>
<div id="x1"/>
</pre>
<div id="x2"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment