Click here to Skip to main content
15,888,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all Please help me out to solve this problem...

I want to place a Page Loader when my page is submitting to server, and more ever i do not have any update panels in my aspx page..


Thanks in Advance...
Posted
Comments
[no name] 23-Oct-13 6:24am    
Hi..,

Top:
----

function loadDefault()
{
if(document.getElementById('bar_window'))
{
document.getElementById('bar_window').style.display="block";
}
else
{
document.write("<div style='margin:auto; width:150px;'><div
id='bar_window' style='display:block; float:left;'><div
class='Background'></div>"
+ "<table valign='middle' style='background-color: White; width: 180px;'
class='BackGroundProgress'>"
+ "<tr><td><table border='0' cellspacing='1' cellpadding='0'><tr><td
class='labelfontblue'> Loading Please
wait.....</td></tr></table></td></tr></table></div></div>");
}
}
function fun1()
{
if(document.getElementById('bar_window'))
{
document.getElementById('bar_window').style.display="none";
}
}
loadDefault();

Bottom of the page:
------------------------
<script language="javascript" type="text/javascript">
if (document.getElementById('bar_window'))
{
document.getElementById('bar_window').style.display = 'none';
}
adjustwindow();
window.onresize = function()
{
adjustwindow();
}

function adjustwindow()
{
var ht = 500;
var vlncheck = 0;
var windowHeight = screen.availHeight;
var windowWidth = screen.availWidth;
}
window.onload = function() {
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(fun1);
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(loadDefault);
}

</script>
thatraja 24-Oct-13 10:30am    
If not updatepanel then what're you using in your page?
thatraja 25-Oct-13 9:38am    
Glad, you have solved the issue.

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