当我进度条为两个按钮进度条都隐藏 [英] When I progress bar for both button progress bar is hide

查看:101
本文介绍了当我进度条为两个按钮进度条都隐藏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< script type =   text / javascript src =   http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min。 JS>< /脚本> 
< script type = text / javascript>
function ShowProgress(){
setTimeout( function (){
var modal = $(' < div /> ;');
modal.addClass( modal);
$(' body')。append(modal);
var loading = $( .loading);
loading.show();
var top = 数学 .max($ ( window )。height()/ 2 - 加载[ 0 ]。offsetHeight / 2 0 );
var left = 数学 .max($( window )。width()/ 2 - 加载[ 0 ]。offsetWidth / < span class =code-digit> 2
0 );
loading.css({top:top,left:left});
}, 200 );


}

$(' form' )。live( submit function (){
ShowProgress();
});



function ShowProgress(){
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(hideMethod);
}


function hideMethod(){
$(' #loading')。hide();
}







当点击导出按钮时,弹出窗口会在弹出窗口中打开并保存按钮就在那里。



当我点击打开按钮时会出现进度条,然后会打开excel文件



然后关闭那个进度条正在显示的背景中的excel文件



为了隐藏进度条在后台我写的代码如下





函数ShowProgress(){
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(hideMethod);
}


函数hideMethod(){
$(' #加载')隐藏();
}





当我写上面的代码然后当我执行并在点击时运行弹出窗口中的打开按钮,进度条没有显示



我该怎么办。



i想要在关闭那个excel背景后不会显示进度条



点击弹出进度条中的打开按钮时会显示



我怎么能在asp.net上做



我尝试了什么: < br $>


i想在后台隐藏进度条但它仍在运行

解决方案

< div />');
modal.addClass( modal);


< blockquote>(' body')。append(modal);
var loading =


加载)。
loading.show();
var top = 数学 .max(


<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
    function ShowProgress() {
        setTimeout(function () {
            var modal = $('<div />');
            modal.addClass("modal");
            $('body').append(modal);
            var loading = $(".loading");
            loading.show();
            var top = Math.max($(window).height() / 2 - loading[0].offsetHeight / 2, 0);
            var left = Math.max($(window).width() / 2 - loading[0].offsetWidth / 2, 0);
            loading.css({ top: top, left: left });
        }, 200);

  
    }

    $('form').live("submit", function () {
        ShowProgress();
    });

   
    
    function ShowProgress() {
        var prm = Sys.WebForms.PageRequestManager.getInstance();
        prm.add_endRequest(hideMethod);
    }


    function hideMethod() {
        $('#loading').hide();
    }




When click the export button popup will open in that popup open and save button is there.

When i click the open button progress bar will appear and then excel file will open

And close that excel file in background that progress bar is showing

For hiding the progress bar in background i written code as follows


function ShowProgress() {
       var prm = Sys.WebForms.PageRequestManager.getInstance();
       prm.add_endRequest(hideMethod);
   }


   function hideMethod() {
       $('#loading').hide();
   }



When i write the above code then when i execute and run at the time of click the open button in popup, that progress bar is not showing

for that how can i do.

i want after closing that excel in background the progress bar will not be shown

at the time of click the open button in popup progress bar will be displayed

for that how can i do in asp.net

What I have tried:

i want to hide the progress bar in background but it is still running

解决方案

('<div />'); modal.addClass("modal");


('body').append(modal); var loading =


(".loading"); loading.show(); var top = Math.max(


这篇关于当我进度条为两个按钮进度条都隐藏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆