I am having a really weird problem! I used the blockUI JQuery plugin in one of my pages and it worked fine. I did the same for another page and it is not unblocking the page when $unblockUI is called.
Here is the code:
function showCommentBox()
{
$("#commentBox").addClass("modalPopup");
alert($("#commentBox").hasClass("modalPopup"));
$.blockUI( { message: $("#commentBox") } );
}
function cancelComment()
{
alert($("#commentBox").hasClass("modalPopup"));
$.unblockUI();
}
The page that does not work returns "false" when the $("#commentBox").hasClass("modalPopup") is evaluated in the cancelComment function while the page that works correctly returns true.