detecting when the “File download” popup is closed

后端 未结 5 1742
情书的邮戳
情书的邮戳 2020-11-28 11:53

I have a web page (made with JSF) where some links allow the user to get a PDF file.

When the user clicks on such a link, a waiting popup (it is a modal panel) is di

5条回答
  •  北荒
    北荒 (楼主)
    2020-11-28 12:28

    I had to work on this kind of issue, on another project. I finally found a smart solution, as explained in another Stackoverflow question.

    The explanation is given in the following post: http://gruffcode.com/2010/10/28/detecting-the-file-download-dialog-in-the-browser

    The idea is to "simply" use a cookie to define when the file is downloaded.

提交回复
热议问题