Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

170
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!