[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] Please wait while your request is processed
Bill Randle wrote:
> Are you thinking about $Document->send() and/or $Document->hot(1)?
That may be their intended purpose, but they don't work in that way. You
can try below with a while loop that goes 10000000 times, which takes
about 5 secs (on my server).
>
> 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
--
Mark Johnson
Senior Developer - Professional Services
Red Hat, Inc.
E-Business Solutions
markj@redhat.com
703-456-2912
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users