I have a view
that loads a DataTable.Net , where I need to display a PopUp with the message " Aguarde...
" .
PopUp opens when the page loads, but how do I close it? The way I did, PopUp does not close, what's wrong? Is there any other more efficient way to do this?
Note: I will then replicate this PopUp to be used in other
View
's.
Here is the code below what I already have:
<style type="text/css">
.progresso {
display: none;
position: fixed;
top: 360px;
left: 50%;
margin-top: -50px;
margin-left: -100px;
vertical-align: middle;
text-align: center;
font-size: 16px;
font-weight: bold;
background-color: white;
border: 1px solid black;
height: 90px;
width: 120px;
}
</style>
.
//AQUI O HTML É CARREGADO
.
<div id="divCarregando" class="progresso">
<img src="~/Imagens/midi.gif" />
<br /> Carregando...
</div>
@section Scripts {
@Scripts.Render("~/Content/css")
@Scripts.Render("~/bundles/DataTables")
<script type="text/javascript">
$(document).ready(function () {
$('.dropdown-toggle').dropdown();
$("#divCarregando").show();
.
.
.
$("#divCarregando").show('hide');
});
</script>