$.ajax({
url : url,
cache : false,
beforeSend : function(){
$('#loading-image').show();
},
success: function(html){
$('#loading-image').hide();
$('.info').append(html);
},
});
// Setting up a loading indicator using Ajax Events
$( "#loading_indicator" )
.ajaxStart(function() {
$( this ).show();
})
.ajaxStop(function() {
$( this ).hide();
});