Forum Moderators: phranque
Does anyone have a way to disable this? or an elegant workaround?
thanks in advance!
Does it take too long for the request to get processed? That sure pisses people off.
Anyway, if you want to use javascript - then create a function that would use a global variable and would be reset on page load. After that, your function should only return true once (and set the global variable) so the next time it returns false. And run this function onsubmit in your form.
I generally use Netscape to browse and sometimes when I hit the submit button, I wait for several minutes and nothing happens. So I hit it again. Then I have to hit it again before I give up and hope my order/request/cancellation went through to the proper party.
I'm assuming either the sites are programmed in some way that conflicts with my browser, or the program has some small glitch in it that keeps the proper page from coming up after the submit button is pressed.
Hope this helps at least a little bit. ;)
Maybe I was impatient, but I thought 3 mintues was more than enough time for any program to execute and bring up a confirmation page. So I hit the button again. I never did get my confirmation page, although I did receive a confirming email which I promptly replied to requesting that I not be charged multiple times for my order, and explaining why I had hit the submit button more than once. ;)
How horrible!
thanks for the tips folks :)
[codes]
<SCRIPT language=JavaScript>
<!-- Global Javasccript functions...
function LockButtons (whichform)
{
ua = new String(navigator.userAgent);
if (ua.match(/IE/g)) {
for (i=1; i<whichform.elements.length; i++) {
if ((whichform.elements[i].type == 'submit') ¦¦ (whichform.elements[i].type == 'button')) {
whichform.elements[i].disabled = true;
}
}
}
whichform.submit();
}
// done hiding -->
</SCRIPT>
[/codes]
Then the submit button looks somewhat like this:
<input type="submit" name="Submit" value="Complete Payment" onClick="javascript:LockButtons(this.form);">
Note that I am not a Javascript programmer, but PHP. I have ripped this out of PayPal's contact page as I saw they are using it.
Hope that helps.
Alex