I've run into the same issue myself - I have yet to implement any changes,
but I was planning on building a process similar to this:

I'd like to know if anyone else has any other ideas.

1) The user requests the PDF.
2) The request spawns off a new process to generate the PDF and saves it to
a temporary folder ( or saves it into a database ). Another option would be
to have the current request save a database record to some sort of "pending"
report table. Then, a separate back end process would poll the table for
reports to generate and save them off to a temp directory or table.
2a) In the meantime, the request immediately forwards the user a page which
presents a "loading" screen. Using javascript the loading page would query
the server every 5-10 seconds to see if the PDF has been generated.
3) Once the loading page has determined that the PDF has been generated, it
is sent to the user.

This could be extended to allow the user to navigate away from the loading
page. A separate page which presents a list of reports and their current
status could be built.

Seth

On Thu, Apr 22, 2010 at 10:13 AM, Aaron Stromas <passog...@gmail.com> wrote:

> Hello,
>
> I realise this is not Stripes question, really. I'm posting to this list in
> hope that someone might have faced a similar situation and was able to find
> a decent solution. So, here goes...
>
> I am using the StreamingResolution to fetch a PDF. Unfortunately, the PDF
> is generated on the fly and can take seriously long time. I'd like to pop up
> one of those javascript busy-wait windows, which would be taken down by the
> page that loads if I were able to hook the onload event on that page.
> Unfortunately, with the StreamingResolution I can't do that.  The problem
> needs to be tackled differently. Any suggestions? TIA
>
> -a
>
> --
> Aaron Stromas
>
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to