I am trying to show blockui when ajax starts like so:
// block when ajax activity starts
$(document).ajaxStart($.blockUI({ message: '<h1><img src="busy.gif" /> Just a moment...</h1>' }));
and then I want to stop it doing
// unblock when ajax activity stops
$(document).ajaxStop($.unblockUI);
Problem Is that it won't load when ajax is performed what have I done wrong'??