> In a simplistic form
>
> $("#BlockID").block();
> $.ajax(
>        success: function(results) {
>             // Do stuff with "results"
>             $("#BlockID").unblock();
>        },
>        error: function(x,y,z) {
>            //x.responseText has the server error text
>             $("#BlockID").unblock();
>        }
> );


Even simpler, from the main BlockUI doc page:

http://www.malsup.com/jquery/block/


$().ajaxStart($.blockUI).ajaxStop($.unblockUI);

Reply via email to