J
James
I have an ASP button on my form that will e-mail several people, and I'd
like to disable it once the user clicks on it, so that they can only click
on it once.
I have a client side javascript confirmation box that says 'Are you
sure...?' and when a user clicks OK, it seems like I have two options. I
can either disable the box, or have the submit work. When I disable it, it
doesn't post. I'm returning true/false based on what they click in the
confirm box like this:
document.getElementById('pbSend').disabled = true;
if (confirm('Are you sure you want to send this?') == true)
{
return true;
}
else
{
document.getElementById('pbSend').disabled = false;
return false;
}
Any thoughts?
like to disable it once the user clicks on it, so that they can only click
on it once.
I have a client side javascript confirmation box that says 'Are you
sure...?' and when a user clicks OK, it seems like I have two options. I
can either disable the box, or have the submit work. When I disable it, it
doesn't post. I'm returning true/false based on what they click in the
confirm box like this:
document.getElementById('pbSend').disabled = true;
if (confirm('Are you sure you want to send this?') == true)
{
return true;
}
else
{
document.getElementById('pbSend').disabled = false;
return false;
}
Any thoughts?