How to detect Ajax call blocked?

时间:2015-06-25 18:50:37

标签: javascript jquery html ajax google-chrome

In Google Chrome, when a page's child page open the print modal (i.e. window.print() or ctrl+P), the parent page's Ajax calls are completely blocked. I'm wondering how to detect this from parent page. Once I can detect that my Ajax calls are blocked on my parent page, I can tell the user to close that print modal on child page so that they can use Ajax again on parent page. Related Info about Chrome's bug: Chrome browser unable to make a server call when print preview is opened Google Chrome blocks ajax requests when print preview is opened on child window https://code.google.com/p/chromium/issues/detail?id=139706

0 个答案:

没有答案