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

165
Visualizações
Use redirect to action in case of AJAX or a way to Use custom confirm modal to call a controller on Yes and then redirect to another controller

I wanted to call a controller on Yes click( from a custom confirm modal) I am assuming the only way is AJAX and I wanted to redirect from that controller to another action controller to refresh the screen, the only way I could figure is to do from Pass redirect link in JSON and then redirect from ajax Success function, is there a way to redirect directly from controller 1 to another in case of ajax. The problem with this approach is a response comes from the back end to the front end and then refresh happens, is there any way to avoid this delay, I am trying to call and controller on the Yes button click ( some new javascript confirm modal ) & that required me to use Ajax and ajax not allowing me to redirect to another controller directly from one action method to another

example A- main controller, B - controller - performing some action on button click yes, C - my client-side I want to clock from C to B and then wanted to redirect to A but don't wanna return to C to redirect to A because it creates a delay.

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