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

100
Views
Handling response from form submit that runs in new browser tab

I have this form which run service on my BE and result is displayed on new tab. It works fine but BE Service is running more than 10 minutes so currently I am refactoring it to use polling instead of 1 long time running request. Backend is done and it is now returning 202 code with ID of background job. I need to find a way how to handle 202 response in new tab and run new request to poll BE for a result. Any ideas how to "send polling code" to new tab or how to handle it in original tab?

Form is triggered with button. Now it only display 202 response on new tab. Need to find a way how to catch that response and run new request...

....
var form$ = $("<form>", {id:"myID", method :"post", action :serviceUrl, target :"_blank"});
$("body").append(form$);
form$.submit();
form$.remove();
...
about 4 years ago · Santiago Gelvez
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!