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

111
Views
Redirect <form> post 303 to another domain in bootstrap modal pop up

I am trying to redirect(303) from one domain to another different domain(payment gateway - EXTERNAL URL) within bootstrap modal pop up on Form POST

Below is the complete code:


<body onload="PostData()">
    <!-- start modal-->
    <div class="modal-dialog" id="popup" >
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">×</button>
                <h4 class="modal-title">Payment gateway</h4>
            </div>
            <div class="modal-body">
                <p>You are now leaving this website.</p>
<input type="submit" id="redirectForm" class="hide" onclick="PostData()" />
   <form id="form1" target="popup" method="POST" enctype="application/x-www-form-urlencoded" action="https://anotherdomain.com/payment">
    </form>
            </div>
            <div class="modal-footer text-center">
                    <button type="button" title="go back" onclick="closewindow()">Go Back</button>
            </div>
        </div>
    </div>
</body>

I would submit the form on a button click event:

When I make the POST call the user is not redirected to the payment gateway inside the modal pop up
What's the best cross domain implementation with the usage of Form POST + Bootstrap modal popup + javascript + ASP.NET MVC

I have also tried embedding Form POST inside modal-body but redirection is not happening.

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!