Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

113
Visualizações
Show Spinning Animation while Page Loads ASP.NET

I want to know that in my web application, the user clicks to the menu, It's buffering sometimes to load the page.

So the Theme I used to create the system has inbuild animation for that. How I can trigger this when loading until the page completely loads to view.

This is the animation

 <div id="loading" class="overlay"><i class="fas fa-2x fa-sync-alt fa-spin"></i></div>

This is currently how I placed it on the page.

<div class="card">
  <div class="card-header">
    <h3 class="card-title">
      <b>Company List</b>
    </h3>
  </div>
  <div id="loading" class="overlay">
    <i class="fas fa-2x fa-sync-alt fa-spin"></i>
  </div>
  <!-- /.card-header -->
  <div class="card-body p-0">
    <table class="table table-striped">
      <tr>
        <th> Company Name </th>
        <th> @Html.DisplayNameFor(model => model.Status) </th>
        <th></th>
      </tr>
      <tbody> @foreach (var item in Model) { <tr>
          <td> @Html.DisplayFor(modelItem => item.CompanyName) </td>
          <td> @Html.DisplayFor(modelItem => item.Status) </td>
          <td> @Html.ActionLink("Edit", "Edit", new { id = item.Id }, new { @class = "btn btn-warning pull-right" }) @Html.ActionLink("View", "Details", new { id = item.Id }, new { @class = "btn btn-success pull-right" }) @Html.ActionLink("Delete", "Delete", new { id = item.Id }, new { @class = "btn btn-danger pull-right" }) </td>
        </tr> } </tbody>
    </table>
  </div>
  <!-- /.card-body -->
</div>

I Used this JQuery

<script>
    $(window).load(function () {
        $('#loading').hide();
    });
</script>
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

$(window).load() has been removed in jQuery 3.0. Try using:

$(window).on('load', function () {
    $('#loading').hide();
});
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda