Can somebody please help me with these questions about using the jquery blockui plugin (http://jquery.malsup.com/block/#)?
Why doesnt's this work?
$(document).ajaxStart($.blockUI({message: "wait..."})).ajaxStop($.unblockUI);
If I just do this:
$(document).ajaxStart($.blockUI).ajaxStop($.unblockUI);
it works, but I want to set override the default message with my own. This doesn't work either:
$.blockUI({ message: "wait..." });
I've been able to override the message with this:
$.blockUI.defaults.message = "wait...";
but if I define a div in my page and pass it to the message property then it doesn't work, but according to the documentation in the plugin's website it should:
<div id="loadingMessageBox" style="display: none;"> <img src="../Images/spinning.gif" />wait... </div> $.blockUI.defaults.message = $("#loadingMessageBox");
Thanks.