Emitted right after the transaction is built and before the HTTP request gets parsed.
$app->hook(after_build_tx => sub {
my ($tx, $app) = @_;
...
});
This is a very powerful hook and should not be used lightly, it makes some rather advanced features such as upload progress bars possible. Note that this hook will not work for embedded applications, because only the host application gets to build transactions. (Passed the transaction and application object)
I wrote a controller which a refresh function which takes quite a while<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="<%= $progress =>" aria-valuemin="0" aria-valuemax="100" style="width: <%= $progress %>%;">
<%= $progress %>%
</div>
</div>
All help will be very much appreciated.
Thx,
Johan
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious...@googlegroups.com.
To post to this group, send email to mojol...@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.