In my pages I have this code. Automatically in AJAX calls, the message
is shown and removed on AJAX call finalizes.

HTML:
<div id="waitmessage">Please wait</div>

JS:
//Configuration for AJAX calls
$().ajaxSend(function(r,s){
   $("#waitmessage").show();
});

$().ajaxStop(function(r,s){
   $("#waitmessage").hide();
});

$().ajaxError(function(r,s){
   setTimeout("$('#waitmessage').hide();",6000);
});


VS escribió:
Hello,

I have a php web application and sometimes the database query will
take a while to process results.  Using JQuery, is it possible to
display a "Please wait...." message and then clear it when the
database query completes ( the code comes out of an foreach
condition ).

Please let me know..

Thank you.
-VS.




--
Best Regards,
José Francisco Rives Lirola <sevir1ATgmail.com>

SeViR CW · Computer Design
http://www.sevir.org
Murcia - Spain

Reply via email to