If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!


  • 0
    select  14 years ago
    well the only thing that is changed here is that i added $("#"+t).html('{{=IMG(_src=URL(request.application,'static','loading.gif' ,_alt='loading')}}'); just under the function header (i changed the code to use jquery functions now) all it does is to set the content of t (the target div) to the loading image, once the proper content is there it will replace everything in the t div

Commented on:

make the ajax function display a loading icon

Hosting graciously provided by:
Python Anywhere