Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have an issue to show the Loader Image when we click the checkbox and hide the loader after retriving the data .Now the 'divData' will be loaded by the load when ever we check the checkbox.Now my scenario is like this the divData is in updatepanel and async trigger checkbox is associated to it.Now I am Showing the Loader like this

JavaScript
function ShowProgress(displayValue) {

            var modal = $("<div id="divLoading" />");
            modal.addClass("modal");
            modal.css('display', displayValue);
            $('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, display: displayValue });
        }


here I am passing the displayValue 'inline' when we click the checkbox.I have written code to hide the loader image as given after binding the data to divData.

VB
ClientScript.RegisterClientScriptBlock(Page.GetType(), "Unload", "ShowProgress('none');", True)


Now the above code is not working to hide the loader.The checkbox control is not in another updatepanel.I've tried all the ways . Can anyone help me to find a solution?
Posted
Updated 10-Sep-13 22:12pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900