If you want a little eyecandy for the ajax function relace it with (web2py_ajax.html)
function ajax(u,s,t) {
$("#"+t).html('{{=IMG(_src=URL(request.application,'static','loading.gif' ,_alt='loading')}}');
var query="";
for(i=0; i<s.length; i++) {
if(i>0) query=query+"&";
query=query+encodeURIComponent(s[i])+"="+encodeURIComponent
(document.getElementById(s[i]).value);
}
jQuery.ajax({type: "POST", url: u, data: query, success: function
(msg) { if(t==':eval') eval(msg); else document.getElementById
(t).innerHTML=msg; } });
}
and put a loading.gif in the static folder you can find loading images at http://www.freeiconsdownload.com/Free_Downloads.asp?id=585
Comments (3)
0
iiit123 14 years ago
0
select 14 years ago
0
carlosarmenta 10 years ago
I have an easiest way to do this:
Explanation:
The full signature of the LOAD helper is the following:
replies (1)