浏览器弹出窗口阻止程序阻止从 Flex 生成的 jasper 报告

发布于 2024-09-02 06:21:19 字数 474 浏览 1 评论 0原文

我有一个Flex应用程序,它使用navigateToURL()来调用servlet。 servlet 依次生成 JasperReport,然后使用 exportReport() 在新的浏览器选项卡中显示报告。

现在,我的问题是这样的。我想一次生成多个报告,每个报告都在自己的选项卡中打开。一切正常,只是在 Firefox 中,内置的浏览器弹出窗口阻止程序会将第一个报告选项卡之后打开的每个新选项卡视为弹出窗口。它阻止了这一点并让我感到无尽的头痛。

我还在 IE8、Safari、Chrome 和 Opera 中尝试过,没有任何问题。

任何关于如何绕过 Firefox 弹出窗口阻止程序的帮助将不胜感激。

更新:

我在循环中使用计时器来触发对 servlet 的调用。原因是,如果没有计时器的延迟,servlet 的命中速度太快,无法生成报告。浏览器是否会认为计时器是恶意的,因此会阻止第一个弹出窗口之后的所有弹出窗口?

I have a flex application that uses navigateToURL() to call a servlet. The servlet in turn generates a JasperReport and then uses exportReport() to show the report in a new browser tab.

Now, my problem is this. I want to generate multiple reports at once, each opening in its own tab. It all works fine except that in Firefox the built in browser pop-up blocker sees every new tab that is opened after the first report tab as a pop-up. It blocks this and is giving me endless headaches.

I also tried this in IE8, Safari, Chrome and Opera with no problems.

Any help as to how I can get past the Firefox pop-up blocker would be much appreciated.

UPDATE:

I use a timer in the loop that I use to fire calls to the servlet. Reason for this is that without the delay from the timer the servlet gets hit too fast for the reports to generate. Could it be that the browser sees the timer as malicious and therefor blocks all popups after the first one?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文