-1

I would like to redirect users through JS with opening of a new browser popup (in Chrome/FF/Safari and IE), because after the click on the button was done I have to wait for the result of a response with the correct url.

Solutions like creating of a new popup before a request and setting the url in promise work BUT they are providing very bad User experience cause a user doesn't understand what is going on and can simple close this popup before the url would be set

Next solutions don't work for me

- async:false

- var popup = window.open("", '_blank');
 $.ajax(...).done(function (data) {
     popup.location.replace(data.redirectUrl);
 }

also all solutions there:

stackoverflow-answers-set-1

stackoverflow-answers-set-2

stackoverflow-answers-set-3

Are there any other ideas? Thanks in advance

Community
  • 1
  • 1
Egor
  • 248
  • 7
  • 17

1 Answers1

0

Explain to the user what is going on while you wait for the correct url

armandocj
  • 26
  • 5