Skip to content

Instantly share code, notes, and snippets.

@SeanRoberts
Created June 14, 2011 14:40
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 SeanRoberts/1025028 to your computer and use it in GitHub Desktop.
Save SeanRoberts/1025028 to your computer and use it in GitHub Desktop.
$.ajax({
url: '/forge/assets/' + id,
type: 'GET',
data: data,
success: function(data) {
// do the success stuff
},
error: function() { alert("There was a small error, you may need to refresh the page to see your new asset."); }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment