Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

CATALYST: How to setup timed refresh

by astrokatz (Initiate)
on Mar 02, 2016 at 21:18 UTC ( #1156694=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1156694]
Approved by Tanktalus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2023-06-03 03:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (6 votes). Check out past polls.

    Notices?