Hi,

some javascript should do the trick:

   <form action="/foo" method="POST">
      <input type="submit"
   onclick="document.getElementById('box').style.display='inline';">
      <span id='box' style="display: none"><img
   
src="http://ressources.blogdumoderateur.com/2013/02/gif-anime.gif";></img></span>
   </form>


Regards,

Christophe

ps: I tried on Firefox 37 and it worked. :)

Le 07/04/2015 19:45, [email protected] a écrit :
Hello all,

I just wonder if there is a way to show a "please wait" image (or animated spinning) in the form page until the post action completed (for example, plot a figure then load it in a new page). I searched here and found the following similar discussion (~three years ago https://groups.google.com/forum/#!searchin/webpy/Show$20image$20during|sort:relevance/webpy/jGAG29QZykU/F9O9Vt-rUVcJ). I just wonder if there is a better alternative. Thanks a lot.

Best Regards,
-Yongzhi
--
You received this message because you are subscribed to the Google Groups "web.py" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>.
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to