S
Sehboo
We want to prevent user from being able to click on a button twice or
click on other controls while processing is going on. I tried the
following javascript code (which was suggested in this group but it
didn't really work). User can click on "print" button and then before
postback, they can click on "cancel" button. Any other suggestions?
function ignoreinput() (
return false;
}
function stop_input() {
window.attachEvent(""onkeydown"", ignoreinput); " _
window.attachEvent(""onclick"", ignoreinput); " _
}
Then in the form element of the page add an onsubmit entry..
<form id="Form1" method="post" runat="server" onsubmit="stop_input();">
click on other controls while processing is going on. I tried the
following javascript code (which was suggested in this group but it
didn't really work). User can click on "print" button and then before
postback, they can click on "cancel" button. Any other suggestions?
function ignoreinput() (
return false;
}
function stop_input() {
window.attachEvent(""onkeydown"", ignoreinput); " _
window.attachEvent(""onclick"", ignoreinput); " _
}
Then in the form element of the page add an onsubmit entry..
<form id="Form1" method="post" runat="server" onsubmit="stop_input();">