[Mojolicious] Re: writing chunks in non-blocking mode

2016-10-21 Thread Heiko Jansen
Am Freitag, 14. Oktober 2016 01:06:57 UTC+2 schrieb Steve Barnsley: > > I tried 'wrapping' the list of calls to the various templates in a > $c->delay(@list); structure, this causes the first template (table) to > execute in its entirety but it never starts the second entry in the list > (even t

[Mojolicious] Re: writing chunks in non-blocking mode

2016-10-13 Thread Steve Barnsley
Thanks for the suggestion Heiko. I've done something similar to what you propose in a prior project - send the entire table to the browser at the start with the 'status' column blank then open a websocket that sends the status value for each row to the browser and have a little javacript that

[Mojolicious] Re: writing chunks in non-blocking mode

2016-10-13 Thread Heiko Jansen
I´m not sure if I understand your workflow correctly but how about this: for every row processed send a small JSON documents to the browser which contains information on the worksheet, row and row status and then have some JavaScript code in the browser assemble and update the correct HTML tabl