S
Sehboo
In my application, there are lot of processes which take several
seconds. What we want is that once user clicks on a button (or link or
whatever) and while we are processing that request, we don't want user
to do anything else on the page. We want to disable everything. I
have following javascript on all of my pages (which is supposed to
work), but it doesn't work.
<script language="JavaScript">
function ignoreinput() {
return false;
}
function stop_input() {
window.attachEvent("onkeydown", ignoreinput);
window.attachEvent("onclick", ignoreinput);
}
</script>
<form name="_ctl0" method="post" action="mypage.aspx"
language="javascript" onsubmit="return stop_input(this);" id="_ctl0"
runat="server">
seconds. What we want is that once user clicks on a button (or link or
whatever) and while we are processing that request, we don't want user
to do anything else on the page. We want to disable everything. I
have following javascript on all of my pages (which is supposed to
work), but it doesn't work.
<script language="JavaScript">
function ignoreinput() {
return false;
}
function stop_input() {
window.attachEvent("onkeydown", ignoreinput);
window.attachEvent("onclick", ignoreinput);
}
</script>
<form name="_ctl0" method="post" action="mypage.aspx"
language="javascript" onsubmit="return stop_input(this);" id="_ctl0"
runat="server">