>
> for the first problem I actually "hacked" web2py.js (web2py_ajax.js or 
> so). 
> the ajax function needs to be modified.... 
> the basic idea is to replace content of the target with a spinner (in 
> this case, a div containing the message "loading...") before sending 
> the request, and upon success replace it with the content actually 
> loaded...
>

Note, if there are no other Ajax requests happening on the page other than 
the one(s) for which you want to trigger a loading message, you can use the 
jQuery .ajaxStart() and .ajaxStop() event handlers to show and hide the 
message, rather than hacking web2py.js.

Anthony 

Reply via email to