<script type="text/javascript" src="js/jquery-1.2.6.pack.js"></script>
<script type="text/javascript">
function refreshAll(){
showBusy();
$.ajax({
type:"POST",
url:"SocketServletAll.do",
data: 'aaaaa=2',
dataType:"json",
success:function(html){
var a = html;
if(html.returnCode =='succ'){
alert(html.returnMessage);
window.location.href="HjServlet.do?act=retriveall";
}else{
alert(html.returnMessage);
}
closeShowBusy();
},
error:function(html,testStatus,errorThrown){
alert("系统繁忙,请重试...."+html);
alert("错误信息:"+testStatus);
alert("errorThrown="+errorThrown);
closeShowBusy();
}
});
}
</script>
<script type="text/javascript" language="javascript">
function showBusy(){
var windowWidth = document.documentElement.clientWidth;
var windowHeight = document.documentElement.clientHeight;
var popupHeight = $("#busyBox").height();
var popupWidth = $("#busyBox").width();
//centering
var pTop = $(document).scrollTop();
var pHeight = $(window).height();
var itop = pTop+(pHeight/2-popupHeight/2);
$("#busyBox").css({
"position": "absolute",
"top": itop,//windowHeight/2-popupHeight/2,
"left": windowWidth/2-popupWidth/2
});
//only need force for IE6
var brower = detectBrower();
if(brower!="Mozilla"){
$("#backgroundPopup").css({
"width": document.body.clientWidth
});
$("#backgroundPopup").css({
"height": document.body.clientHeight
});
}else{
$("#backgroundPopup").css({
"height": windowHeight
});
}
$("#backgroundPopup").css({
"opacity": "0.5"
});
$("#backgroundPopup").show();
$("#busyBox").show();
//由于select太高,这样控制,别处不用
$("#chpin").hide();
}
<script type="text/javascript">
function refreshAll(){
showBusy();
$.ajax({
type:"POST",
url:"SocketServletAll.do",
data: 'aaaaa=2',
dataType:"json",
success:function(html){
var a = html;
if(html.returnCode =='succ'){
alert(html.returnMessage);
window.location.href="HjServlet.do?act=retriveall";
}else{
alert(html.returnMessage);
}
closeShowBusy();
},
error:function(html,testStatus,errorThrown){
alert("系统繁忙,请重试...."+html);
alert("错误信息:"+testStatus);
alert("errorThrown="+errorThrown);
closeShowBusy();
}
});
}
</script>
<script type="text/javascript" language="javascript">
function showBusy(){
var windowWidth = document.documentElement.clientWidth;
var windowHeight = document.documentElement.clientHeight;
var popupHeight = $("#busyBox").height();
var popupWidth = $("#busyBox").width();
//centering
var pTop = $(document).scrollTop();
var pHeight = $(window).height();
var itop = pTop+(pHeight/2-popupHeight/2);
$("#busyBox").css({
"position": "absolute",
"top": itop,//windowHeight/2-popupHeight/2,
"left": windowWidth/2-popupWidth/2
});
//only need force for IE6
var brower = detectBrower();
if(brower!="Mozilla"){
$("#backgroundPopup").css({
"width": document.body.clientWidth
});
$("#backgroundPopup").css({
"height": document.body.clientHeight
});
}else{
$("#backgroundPopup").css({
"height": windowHeight
});
}
$("#backgroundPopup").css({
"opacity": "0.5"
});
$("#backgroundPopup").show();
$("#busyBox").show();
//由于select太高,这样控制,别处不用
$("#chpin").hide();
}