If you want a little eyecandy for the ajax funtion relace it with
(web2py_ajax.html)

function ajax(u,s,t) {
  document.getElementById(t).innerHTML='{{=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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to