[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] Please wait while your request is processed
Mark Johnson wrote:
>
> cfm@maine.com wrote:
> >
> > On Wed, Mar 14, 2001 at 09:15:16PM -0800, Dan B wrote:
> > > I have a metric ton of IML code that I would like to process in a visually
> > > aesthetic way. How do I write a page so that it goes something like this:
> > >
> > > Please wait while your request is processed...
> > >
> > > -->(tons of code that takes 5+ seconds to complete goes here)<--
> > >
> > > ...Done. Thank you for your patience, you will now be forwarded to ...
> > >
> > > [bounce ...]
> >
>
> All the IC processing will occur before the buffer is returned to vlink
> (though it seems there's some way to force a flush that I can't
> remember). However, you can always use good ol' html to solve your
> problem, with a little restructuring of your messaging system.
Are you thinking about $Document->send() and/or $Document->hot(1)?
> We thank you for your patience while your request is processed...
> <meta http-equiv="refresh" content="0;url=[area bouncepage]">
>
> Put the 5 seconds of code in 'bouncepage' along with whatever info you
> were planning on having on the page that you previously were
> [bounce]'ing to.
>
> --
> Mark Johnson
> Senior Developer - Professional Services
> Red Hat, Inc.
> E-Business Solutions
> markj@redhat.com
> 703-456-2912
Another possibility, perhaps (untested):
<HTML>
<HEAD></HEAD>
<BODY>
<other tags you may want to use>
[mvasp]
<%
HTML "This will take awhile, please be patient...";
$Document->send(); # flush buffer
$Document->hot(1); # send stuff as soon as it's written
# some perl task that takes awhile
# if there are some points in the process you can update the
# user status, so much the better. E.g.:
# foreach (@some_array) {
# HTML " ."; # show another period as a progress indicator
# some code that processes each item
# }
HTML "<br>All done, thank you for waiting.";
%>
[/mvasp]
</BODY>
</HTML>
-Bill
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users