Jan-08-2021, 08:31 AM
(Jan-08-2021, 08:19 AM)kashcode Wrote: I suggest reload some page parts with ajax call to backed, this call to backed can be with some interval.
function fetchdata(){ $.ajax({ url: 'fetch_details.php', type: 'post', success: function(response){ // Perform operation on the return value alert(response); } }); } $(document).ready(function(){ setTimeout(fetchdata,5000); });
Thanks for the response
However, I'm not sure what you are getting at.
I do not need to refresh at an interval but when I get pipe input from a separate program.
In the Flask app the user presses a button which results in a message being sent via a pipe to a separate program. When this other program receives the message it performs some processing and writes a response to the pipe and this is then received by the Flask app. When the Flask app receives the reply I want to reload a page in the Flask app.