搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

A webpage that makes an ajax call, then jumps to a new page works using Chrome but does not work with Firefox.

  • 2 个回答
  • 1 人有此问题
  • 4 次查看
  • 最后回复者为 cor-el

more options

Does Firefox require that a page remain active in the browser until the ajax call finishes? Is there any documentation that explains what Firefox requires to always successfully use javascript ajax calls to external API's?

Does Firefox require that a page remain active in the browser until the ajax call finishes? Is there any documentation that explains what Firefox requires to always successfully use javascript ajax calls to external API's?

所有回复 (2)

more options

Pending requests of all kinds may be terminated when the page is unloaded. I imagine you could do your navigation in a callback when the request returns. But there should be plenty of advice on sites like StackExchange since this is quite an old behavior.

more options