Hi Ranchers,
Good Day guys!
This is actually related to this
topic.
Currently i am using a simple design of downloading a pdf.
Passing the request via submit form.
And same thing with the
servlet used by Kimon Pi.
But I'm quite troubled right now, because aside from having this download pdf feature.
My page also has a Javascript Refresh Timer(every 20 seconds the page refreshes).
So my problem is , when a user clicks on download pdf, a download browser window will pop out.
When the user doesn't do anything with the download window within 20 seconds the page refreshes.
But the problem is as long as the download window is still open the page looks freezed, so sadly the page does not
do a refresh. So my javascript timer is busted once the user does that.
What I was thinking, was to use ajax to call the controller, but before calling the controller I will clear the timeout,
and then maybe I can handle the response outputstream and activate the timer once finished,
but I think javacript can't handle that.
So maybe you guys have some ideas, on how to handle the Outputstream in javascript,
or maybe how to handle the download window of the browser ,
like when window.ok restart timer?
Thanks in advance!