tags:

views:

33

answers:

1

I have a search page.

On clicking search it will show a jquery modal with processing image and redirect to results page.

I have download functionality also in the search page.If i select download option,

the result may vary to 1 kb to 25 mb , and i cant put a timer to close the modal window.

Is there any way to find the download is prompted ?

Or download is completed? So that i can close modal at that time!!

I have seen may discussions here , asked by many one. But No answers!!

Anybody found a new answer??

A: 

Just make a popup that disappears when the user click anywhere else, like on github. It would probably be too much job doing what you requests that it is not worth it. Better just showing a dialog that the user can dismiss whenever s/he wants to.

Well, yes it would be possible to have a script that runs while the file is being served (PHP normally times out within 30sec) and have periodically AJAX-requests to see if download is completed (or aborted).

Frank