I wanted to know how to make an image, or something, to indicate that the page is loading. I have a process that takes about 7 seconds and for the user not to click on thinking it was not, I would like to display a loading image or something. Here's part of my code
<a onclick="Open('/CMS/Pedido/Index');" href="javascript:void(null);">Ver Pedidos</a>
I tried to add an image to the div but it did not work:
<script>
function Open(url) {
var img = $("<img />").attr('src', '~/Content/Images/loading.gif');
$("#Conteudo").clear().append(img);
$("#Conteudo").load(url);
}
</script>