February 1, 2002 - Preventing Double Payments
February 1, 2002|
Preventing Double Payments
Tips: February 2002
Yehuda Shiran, Ph.D.
One way to protect the user is by disabling the tempting button after the user clicks it. Here is the button first:
Try it. See how the button gets disabled after you click it. Refresh the page to enable it again. The assumption here is that the authorization number will arrive by the time the user refreshes his or her window. Here is how the above button is defined:
This tip works for IE and N6.
document.getElementById('tuition').disabled = true