当请求从更新面板中的ajax模型弹出窗口发送时,等待图像和下载弹出窗口没有显示? [英] Waiting Image and Download popup not appering when request send from ajax model popup which is present inside Update panel ?

查看:84
本文介绍了当请求从更新面板中的ajax模型弹出窗口发送时,等待图像和下载弹出窗口没有显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hii,





我有一个Ajax模型弹出窗口,从这个弹出窗口,我可以下载多个内容和给用户下载弹出窗口,



之前我没有保留更新面板但现在我想显示等待图像,如果有处理时间在页面上下载内容,但是图片不会出现甚至没有下载弹出窗口即将出现



请建议



 function BeginRequestHandler(sender,args){
var elem = args.get_postBackElement();
$( body)。css( 溢出 hidden );
ActivateAlertDiv(' visible'' AlertDivContainer');
}

函数EndRequestHandler(sender,args){
DeActivateAlertDiv(' hidden'' AlertDivContainer');
$( body)。css( 溢出 auto );
}

函数ActivateAlertDiv(visstring,elem){
var adiv = $ get(elem);
adiv.style.visibility = visstring;
}

函数DeActivateAlertDiv(visstring,elem){
var adiv = $ get(elem);
adiv.style.visibility = visstring;
}







 <   div     id   =  AlertDivContainer    class   =  AlertStyleContainer >  
< div id = AlertDivContent class = AlertStyleContent >
< img src = ../ images / loading.gif alt = / >
< / div >
< / div > ;













这是我显示处理图像的内容

解决方案

body)。css( overflow hidden);
ActivateAlertDiv(' visible'' AlertDivContainer');
}

函数EndRequestHandler(sender,args){
DeActivateAlertDiv(' hidden'' AlertDivContainer');


body)。css( 溢出 auto);
}

函数ActivateAlertDiv(visstring,elem){
var adiv =


的get(ELEM);
adiv.style.visibility = visstring;
}

函数DeActivateAlertDiv(visstring,elem){
var adiv =


Hii ,


I have one Ajax model popup which is present inside , from this popup , i can download multiple contents and give the download popup to user ,

previously i wasnt keeping update panel but now i wanted to display waiting image if there is processing time to download the content on page , but image not coming as well as not even that download popup is coming on the page

Please suggest

function BeginRequestHandler(sender, args) {
        var elem = args.get_postBackElement();
        $("body").css("overflow", "hidden");
        ActivateAlertDiv('visible', 'AlertDivContainer');
    }

    function EndRequestHandler(sender, args) {
        DeActivateAlertDiv('hidden', 'AlertDivContainer');
        $("body").css("overflow", "auto");
    }

    function ActivateAlertDiv(visstring, elem) {
        var adiv = $get(elem);
        adiv.style.visibility = visstring;
    }

    function DeActivateAlertDiv(visstring, elem) {
        var adiv = $get(elem);
        adiv.style.visibility = visstring;
    }




<div id="AlertDivContainer" class="AlertStyleContainer">
    <div id="AlertDivContent" class="AlertStyleContent">
        <img src="../images/loading.gif" alt=" " />
    </div>
</div>







this is my content to disply processing image

解决方案

("body").css("overflow", "hidden"); ActivateAlertDiv('visible', 'AlertDivContainer'); } function EndRequestHandler(sender, args) { DeActivateAlertDiv('hidden', 'AlertDivContainer');


("body").css("overflow", "auto"); } function ActivateAlertDiv(visstring, elem) { var adiv =


get(elem); adiv.style.visibility = visstring; } function DeActivateAlertDiv(visstring, elem) { var adiv =


这篇关于当请求从更新面板中的ajax模型弹出窗口发送时,等待图像和下载弹出窗口没有显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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