Да, это возможно.
я просто проверял, и это работает попробуйте так:
HTML
<!DOCTYPE html>
<html>
<head>
<link media="screen" href="https://raw.github.com/dreamerslab/jquery.msg/master/jquery.msg.css" rel="stylesheet" type="text/css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="https://raw.github.com/dreamerslab/jquery.msg/master/jquery.center.min.js"></script>
<script src="https://raw.github.com/dreamerslab/jquery.msg/master/jquery.msg.min.js"></script>
<meta charset=utf-8 />
<title>Test Page</title>
</head>
<body>
<div id="test"></div>
</body>
</html>
JQuery
jQuery(document).ready(function($){
$.ajax({
url: "http://www.google.com",
beforeSend: function (xhr) {
$("#test").html("before send");
$.msg({
autoUnblock: false
});
},
success:function(){
$("#test").html("success");
$.msg('unblock'); //this will remove the msg box
},
error:function(){
$("#test").html("error");
$.msg('unblock'); //this will remove the msg box
}
});
});
Вот скрипка: http://jsfiddle.net/qqjhB/1/
В этом примере кода вы сначала зайдете в блок beforesend
, чтобы он отображал вам поле с сообщением &, после чего оно будет завершено в блоке error
, после чего оно удалит этот значок.
Почему blockui не работает – PSR
Не работает оно или не подходит для вас – PSR
Я понятия не имею ... вышеупомянутые работы. – cs0815