<!--Loading-->
<div id="divloading" style="margin: 0px; padding: 0px; position: fixed; right: 0px;
top: 0px; width: 100%; height: 100%; background-color:#ffffff; z-index: 300001;
opacity: .8; filter: alpha(opacity=80);display:none">
<div style="position: absolute; top: 40%; left: 50%; color: black;">
<img style="width:60%" src="~/dist/img/loading.gif" />
</div>
</div>
<!--Show the loading-->
function Searching() {
if ($("#FilterForm").valid()) {
$.ajax({
url: subDomainUrl + '/MIXDashboard/Searching',
type: 'POST',
data: $('#FilterForm').serialize(),
beforeSend: function () {
// Show image container
$("#divloading").show();
},
success: function (data) {
$('#MainTable').html(data);
},
error: function (xhr, status, error) {
},
complete: function (xhr, status) {
$("#divloading").hide();
//$('#mixmaster-area').html("");
$('#mixdetail-area').html("");
InitMixTable();
}
});
sessionStorage.clear();
};
}