本文介绍了Javascript弹出窗口问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部,


我正在使用javascript(window.open())创建一个弹出窗口来进行一些处理。这个弹出窗口将创建一个PDF,可能需要10秒到2分钟(很多后端SQL调用),我希望使用这个弹出窗口向用户显示正在进行的操作(动画gif)并给他们能够使用父窗口在我们的系统中做其他事情(弹出窗口是在服务器上创建PDF)。


我的问题在于弹出窗口正在创建在PDF中,父窗口无法导航到其他页面(直到弹出窗口完成)。有没有办法取消弹出窗口与父窗口的关联,以便用户能够在弹出窗口处理时使用父窗口导航?


Thx

jonpfl

All,

I am using javascript (window.open()) to create a popup to do some processing. This popup is going to create a PDF which can take anywhere from 10 secs to 2 mins (alot of backend SQL calls) and I was hoping to use this popup to show the user that something is going on (animated gif) and give them the ability to use the parent window to do other things in our system (while the popup is creating the PDF on the server).

My problem lies in the fact that while the popup is creating the PDF, the parent window cannot navigate to other pages (until the popup window is done). Is there any way to disassociate the popup window with the parent window so a user will be able to navigate with the parent window while the popup window is processing?

Thx
jonpfl

推荐答案




这篇关于Javascript弹出窗口问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 16:00
查看更多