Skip to content

Instantly share code, notes, and snippets.

@lukesUbuntu
Created March 24, 2015 10:56
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 lukesUbuntu/169def79fddc4f730697 to your computer and use it in GitHub Desktop.
Save lukesUbuntu/169def79fddc4f730697 to your computer and use it in GitHub Desktop.
blesta jquery ajax loading example
$.ajax({
method: 'GET',
url: data,
success: function(data) {
$("#package-config").html(data);
},
beforeSend: function() {
$("#package-config").append($(this).blestaLoadingDialog());
},
complete: function() {
$(".loading_container", $("#package-config")).remove();
}, dataType: 'json'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment