[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Duplicate orders?
****** message to minivend-users from "kyle@invisio.com" <kyle@invisio.com> ******
Not sure about server side, but I have used this Javascript to cut
down on multiple clicks:
(Also some text that says to only click once can help)
In the head:
<SCRIPT LANGUAGE="JavaScript" >
<!--
var submitted = false;
function submitCheck(){
if (submitted) {
alert("You have already submitted this payment. Please wait....");
return false;
}
else {
submitted = true;
return true;
}
}
// -->
</SCRIPT>
Then in the form add the onSubmit like:
<FORM ACTION="[process-target secure=1]"
METHOD="POST"
onSubmit="return submitCheck()">
Kyle Cook (KC)
At 10:59 AM 1/28/00 -0600, you wrote:
>****** message to minivend-users from "Christopher P. Lindsey"
><lindsey@mallorn.com> ******
>
>I didn't see much in the archives that answered this...
>
>We've been getting many duplicate orders on the system. They usually show
>up one or two seconds apart and only two make into the system before that
>session is cleared, but it's making customers nervous.
>
>The only thing that I can think of is that they're clicking on the
>"Place Order" button multiple times -- there can be a one second delay
>while the secure server does its thing (maybe we should have used lower
>encryption?), so I can see people clicking on it a couple of times (I've
>seen this happen on other Web-based applications for the same reason).
>
>Is there a way to immediately lock the session when a POST is performed
>to the checkout page? Then, if certain conditions aren't met, the session
>could be unlocked.
>
>Thanks for any tips,
>
>Chris
>-
>To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
>email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
>Archive of past messages: http://www.minivend.com/minivend/minivend-list
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list