Skip to content

Instantly share code, notes, and snippets.

@rwaldron
Created November 7, 2010 15:58
Show Gist options
  • Save rwaldron/666200 to your computer and use it in GitHub Desktop.
Save rwaldron/666200 to your computer and use it in GitHub Desktop.
jsfiddle html panel contents
#foo {
height:100px;
width:100px;
padding:20px;
border:1px solid;
}
<div id="foo">I can haz foo!</div>
$(function () {
$.ajax({
// gist at: https://gist.github.com/666200
url: '/gh/gist/response.json/666200/',
type: 'GET',
dataType: 'json',
success: function (data) {
$('#foo').text(data.foo);
}
});
});
{
"foo" : "I can haz json response from githubz?!"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment