Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
flask show while calculating
#8
You don't send data to HTML files. If the server is doing these calculations, the results need to be sent to the client (i.e. the browser). The browser can make an AJAX request to ask for that data (so will need to ask repeatedly for updates), or you can have the server push the data to the client with WebSockets or socket.io for example. As I said earlier, HTTP is request/response, so you'll have to poll the server unless you want to look at WebSockets/socket.io.
Reply


Messages In This Thread
flask show while calculating - by keuninkske - Jan-20-2020, 10:09 PM
RE: flask show while calculating - by keuninkske - Apr-05-2020, 01:42 PM
RE: flask show while calculating - by ndc85430 - Apr-05-2020, 01:59 PM
RE: flask show while calculating - by snippsat - Apr-05-2020, 03:46 PM
RE: flask show while calculating - by keuninkske - Apr-05-2020, 05:56 PM
RE: flask show while calculating - by snippsat - Apr-05-2020, 06:30 PM
RE: flask show while calculating - by keuninkske - May-26-2020, 09:14 PM
RE: flask show while calculating - by ndc85430 - May-27-2020, 04:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  show csv file in flask template.html rr28rizal 8 35,195 Apr-12-2021, 09:24 AM
Last Post: adamabusamra

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020