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

64
Visualizações
Opening another view page from modal

I have a dynamic list of links in html select which can select and redirect to another page, but i want to change it and load from modal, for one viewing of different filing forms and no longer redirect to another page.

   <div class="input-group input-group-sm">
        <div class="input-group-prepend ">
          <span class="input-group-text">Select transaction to file</span>
      </div>
       <select name="toFile" id="toFile" class="toFile form-control">
          <option selected disabled>Choose...</option>
          @try{
            for (int i = 0; i < trantypetodeserialized.Count; i++){
            <option value="@trantypetodeserialized[i].menu_url">@trantypetodeserialized[i].menu_name</option>
                }
            }
        catch (Exception) { }
     </select>
       <div class="input-group-append">
      <button class="btn btn-secondary" name="btnToFile" id="btnToFile" type="submit">Select</button>
         </div>
    </div>
       

I'm using location.href to redirect based on the selected link.

  <script>
    var vFile = $('#toFile').val();
        
     $.dialog({
        icon: 'fa fa-spinner fa-spin',
        title: 'Redirecting',
        content: 'Please Wait...',
        showConfirmButton: false,
        draggable: false,
        closeIcon: false
      });
        
    var linkTime = setTimeout(function () {
                
    location.href = vFile;
        clearTimeout(linkTime);
            $(".jconfirm").fadeOut(100);
              }, 1000)
        
   </script>

Now, i want to display all filing forms in modal but i have no idea how to do it.

<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
   <div class="modal-dialog modal-lg" role="document">
      <div class="modal-content">
         <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">Forms</h5>
         </div>
         <div class="modal-body">
             
         </div>
         <div class="modal-footer">
            <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
         </div>
      </div>
   </div>
</div>
about 4 years ago · Juan Pablo Isaza
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