Skip to content

Instantly share code, notes, and snippets.

@niyazpk
Created January 3, 2013 04:12
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 niyazpk/4440733 to your computer and use it in GitHub Desktop.
Save niyazpk/4440733 to your computer and use it in GitHub Desktop.
// on document-ready,
$(function(){
// make an ajax call..
$.ajax({
url: '/myAwesomeService'
}).done(function(data){
// and attach the result to the DOM
$('body').append(data);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment