I am new to magento, and i am trying to make a simple ajax call in it
jQuery.ajax({
url: url,
dataType: 'json',
type : 'post',
data: data,
async: true,
success: function(data){
//alert(data.status + ": " + data.message);
if(data.status == 'SUCCESS'){
jQuery('.loadingOverlay').hide();
location.reload();
}
}
});
after response i need to reload the page to see the changes done by ajax call. Are there any other ways and how to implement them. Can anyone help.