python - reload image/page after computation is complete from the server side -
i have python code performs intense computations, , generates plot (png file) display on web. i'm using python, flask, mod_wsgi, , apache. since computation takes several seconds (around 10 seconds), i'd display "loading" type image while computation happening viewer doesn't think server messed up, , actual image when computations complete. how can server side (not using javascript in web browser)? in past remember seeing lot of web pages seemed server pushing new page browser (from recall search engines on message forums). answer question believe http related question, doesn't have specific serving image (it html page), or using python, flask, mod_wsgi, or apache, great if example giving configuration.
before javascript did implement generating page had refresh in html header, delay of 2-3 seconds.
this page redisplay until code generating page noticed 'result' finished generating different html code (without refresh).
<head> <meta http-equiv="refresh" content="3"> </head>
Comments
Post a Comment