Display a ‘loading’ message while a time consuming function is executed in Flask

后端 未结 3 794
一个人的身影
一个人的身影 2020-12-02 08:39

I’m still relatively new to Flask, and a bit of a web noob in general, but I’ve had some good results so far. Right now I’ve got a form in which users enter a query, which i

3条回答
  •  长情又很酷
    2020-12-02 09:10

    This can be done by using a div that contains a 'loading gif' image. When the submit button is clicked, the div is displayed using javascript. To implement this, you can take a look at this website: http://web.archive.org/web/20181023063601/http://www.netavatar.co.in/2011/05/31/how-to-show-a-loading-gif-image-while-a-page-loads-using-javascript-and-css/

提交回复
热议问题