http://qs1969.pair.com?node_id=1156694

astrokatz has asked for the wisdom of the Perl Monks concerning the following question:

I have a new Perl Catalyst application that controls jobs being executed in the background. I need the application to refresh the display every 5 seconds with the current status of these jobs.

How can I configure Catalyst to do this? Or would this be easier to be performed thru Javascript?

Replies are listed 'Best First'.
Re: CATALYST: How to setup timed refresh
by Your Mother (Archbishop) on Mar 02, 2016 at 21:48 UTC

    Unless you are using websockets (or cometd maybe…) the only way is HTML/JS. Meta refresh or JS ⇨ ajax + setTimeOut(), setInterval(), location.reload()+ jQuery.delay(), and so on and so forth.

    Update: removed a \s.

Re: CATALYST: How to setup timed refresh
by neilwatson (Priest) on Mar 02, 2016 at 21:42 UTC

    I'm pretty sure that is a browser function so javascript.

    Neil Watson
    watson-wilson.ca