Required JS plugin for block UI.<script type="text/javascript" src="js/jquery.blockUI.js"></script>
$(document).ready(function(){ $(document).ajaxStart(function(){ $.blockUI({ message: '<img src="images/wait.gif" /> Computation in progress...' }); }); $(document).ajaxComplete(function(){ $.unblockUI(); }); });