[英]How do I create an indeterminately delayed popup (for Social Auth) with window.open without a popup blocker stopping it
The experience I want is: 我想要的经验是:
Couple of things that make this hard: 使这很难的几件事:
Any ideas? 有任何想法吗?
This is a common and long-lamented problem . 这是一个常见且长期存在的问题 。 Though jQuery may be deprecating synchronous AJAX, you could always use a non-jQuery AJAX request.
虽然jQuery可能会弃用同步AJAX,但您总是可以使用非jQuery AJAX请求。 Another possibility would be a refactor where the following takes place:
另一种可能性是重构,其中发生以下情况:
If that's possible, I suggest that. 如果可能,我建议。 If not, async: false (or writing your own very simple cross-browser XHR wrapper) is still the best way.
如果没有,async:false(或编写自己非常简单的跨浏览器XHR包装器)仍然是最好的方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.